Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicitly declare units field in PintType #214

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

MichaelTiemannOSC
Copy link
Collaborator

@MichaelTiemannOSC MichaelTiemannOSC commented Jan 13, 2024

Improve mypy compatibility by declaring units to be a field of PintType.

  • Closes PintType is not mypy-friendly #213
  • Executed pre-commit run --all-files with no errors
  • The change is fully covered by automated unit tests
  • Documented in docs/ as appropriate
  • Added an entry to the CHANGES file

I don't believe this change is docs-worthy, as it doesn't change any user-visible functionality (other than to make mypy more accepting of accessing the units field of PintType). It is implicitly covered by automated unit tests because it changes no functionality the unit tests were written to test.

Improve mypy compatibility by declaring `units` to be a field of PintType.

Signed-off-by: Michael Tiemann <[email protected]>
@andrewgsavage andrewgsavage merged commit 5f4c39d into hgrecco:master Jan 13, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PintType is not mypy-friendly
2 participants