Add TypeAlias LazyValue
parent
1b05346185
commit
f3ec68fa73
@ -1,8 +1,10 @@
|
|||||||
from .chain import Chain
|
from .chain import Chain
|
||||||
from .strings import remove_common_trails
|
from .strings import remove_common_trails
|
||||||
|
from .typing import LazyValue
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"Chain",
|
"Chain",
|
||||||
|
"LazyValue",
|
||||||
"remove_common_trails",
|
"remove_common_trails",
|
||||||
]
|
]
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
from typing import (
|
||||||
|
Callable,
|
||||||
|
TypeAlias,
|
||||||
|
TypeVar,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
T = TypeVar("T")
|
||||||
|
|
||||||
|
|
||||||
|
LazyValue: TypeAlias = Callable[[], T]
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = [
|
||||||
|
"LazyValue",
|
||||||
|
]
|
Loading…
Reference in New Issue