summaryrefslogtreecommitdiff
path: root/pint/facets/context/definitions.py
diff options
context:
space:
mode:
Diffstat (limited to 'pint/facets/context/definitions.py')
-rw-r--r--pint/facets/context/definitions.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pint/facets/context/definitions.py b/pint/facets/context/definitions.py
index 833857e..d2581d5 100644
--- a/pint/facets/context/definitions.py
+++ b/pint/facets/context/definitions.py
@@ -12,7 +12,7 @@ import itertools
import numbers
import re
from dataclasses import dataclass
-from typing import TYPE_CHECKING, Any, Callable
+from typing import TYPE_CHECKING, Callable
from collections.abc import Iterable
from ... import errors
@@ -47,7 +47,7 @@ class Relation:
return set(self._varname_re.findall(self.equation))
@property
- def transformation(self) -> Callable[..., Quantity[Any]]:
+ def transformation(self) -> Callable[..., Quantity]:
"""Return a transformation callable that uses the registry
to parse the transformation equation.
"""
@@ -68,7 +68,7 @@ class ForwardRelation(Relation):
"""
@property
- def bidirectional(self):
+ def bidirectional(self) -> bool:
return False
@@ -82,7 +82,7 @@ class BidirectionalRelation(Relation):
"""
@property
- def bidirectional(self):
+ def bidirectional(self) -> bool:
return True