Add TypeAlias LazyValue

master
Felix Stupp 1 year ago
parent 1b05346185
commit f3ec68fa73
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,8 +1,10 @@
from .chain import Chain
from .strings import remove_common_trails
from .typing import LazyValue
__all__ = [
"Chain",
"LazyValue",
"remove_common_trails",
]

@ -0,0 +1,16 @@
from typing import (
Callable,
TypeAlias,
TypeVar,
)
T = TypeVar("T")
LazyValue: TypeAlias = Callable[[], T]
__all__ = [
"LazyValue",
]
Loading…
Cancel
Save