blob: dbeca15dd7d1c65f7997b8d692ed30213bdbfc0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
from typing import TYPE_CHECKING, Any, Callable, Tuple, TypeVar, Union
if TYPE_CHECKING:
from .quantity import Quantity
from .unit import Unit
from .util import UnitsContainer
UnitLike = Union[str, "UnitsContainer", "Unit"]
QuantityOrUnitLike = Union["Quantity", UnitLike]
Shape = Tuple[int, ...]
_MagnitudeType = TypeVar("_MagnitudeType")
S = TypeVar("S")
FuncType = Callable[..., Any]
F = TypeVar("F", bound=FuncType)
|