You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adopt Quantity type annotations that preserve units #1413
These are not type hint annotations, since the expected value is a Quantity in most situations. Instead the annotations are used by decorators like our validators and astropy.units.quantity_input. Unfortunately, this means that we can't use static type checkers like mypy to check PlasmaPy code. 😿 Using mypy has the potential to help us find bugs, as well as errors in existing type hint annotations (#268).
We should migrate towards using Quantity annotations that preserve units in PlasmaPy. However, before we do this, we would need to change our validators to make them work with this style of annotation.
Activity
namurphy commentedon Oct 17, 2023
I closed the wrong issue here with #2346. I meant to close #1414.
namurphy commentedon Jan 17, 2024
Closed by #2421!