Skip to content

Commit

Permalink
Merge pull request #1832 from kadykov/transformation-typing
Browse files Browse the repository at this point in the history
Fix Transformation typing
  • Loading branch information
hgrecco authored Aug 17, 2023
2 parents 6c2dda9 + c47e595 commit 2852f36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Pint Changelog
-----------------

- Fixed Transformation type protocol.
(PR #1805)
(PR #1805, PR #1832)
- Documented to_preferred and created added an autoautoconvert_to_preferred registry option.
(PR #1803)
- Optimize matplotlib unit conversion for Quantity arrays
Expand Down
4 changes: 2 additions & 2 deletions pint/facets/context/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

class Transformation(Protocol):
def __call__(
self, ureg: UnitRegistry, value: Magnitude, **kwargs: Any
) -> Magnitude:
self, ureg: UnitRegistry, value: PlainQuantity, **kwargs: Any
) -> PlainQuantity:
...


Expand Down

0 comments on commit 2852f36

Please sign in to comment.