Commits
Click on a commit to change the comparison rangefix: Annotate `Quantity.__round__` to return `Quantity` instead of `PlainQuantity` fix: use `SupportsAbs` from `typing` and reuse `T` instead of defining a new type variable fix: remove an accidentally duplicated import feat: annotate `PlainQuantity.from_tuple`'s arguments fix: don't use optype at runtime feat: type `[Plain]Quantity.tolist()` fix: correctly type `__reduce__` feat: correctly annotate `__iter__` fix: ensure type checkers treat type aliases as such fix: treat `Q_` and `U_` as type aliases in tests fix(typing): when `TYPE_CHECKING`, import `Quantity` directly from `registry`. feat(tests): use `assert_type` to test unary operators fix(tests): use string annotations in `assert_type` feat(tests): test rounding with two arguments feat(tests): annotate more tests feat: annotate `__iadd__` and `__isub__` for simple cases fix: annotate `Unit.__rmul__` and `Unit.__mul__` fix: simplify `__round__` annotation to help type inference feat: annotate `__add__`, `__sub__` fix: simplify `__rsub__` annotation for datetime special case feat: annotate other in-place arithmetic methods fix: use `ClassVar` in test setup fix: silence missing overload implementation messages fix: import all generic types from their respective modules feat: annotate `from_list` and `from_sequence`. feat: annotate `__mul__` and `__matmul__` fix: types `from_sequence`/`from_list` types Merge branch 'master' into typing-plain-quantity-2 feat(ci): add optype to typecheck environment fix: make `MagnitudeT` in `PlainQuantity` covariant refactor: make use of `MagnitudeT_co`'s covariance fix: use `self.__*__` at runtime inside `__r*__` instead of function aliasing fix(typing): forced `MagnitudeT` to be covariant in `Quantity` as well.