hgrecco / pint-pandas

Pandas support for pint
Other
166 stars 40 forks source link

Explicitly declare `units` field in PintType #214

Closed MichaelTiemannOSC closed 5 months ago

MichaelTiemannOSC commented 6 months ago

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

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.