funcs ¶
Type Aliases:
Classes:
-
StrList–Custom class for representing a recursively "stringable" list.
Attributes:
-
Sentinel–
SentinelDispatcher ¶
Methods:
-
__call__– -
check– -
check_cb– -
filter– -
filter_multi–
__call__ ¶
__call__() -> SentinelDispatcher
Source code in jetpytools/types/funcs.py
91 92 | |
check ¶
check(ret_value: T, cond: bool) -> T | SentinelDispatcher
Source code in jetpytools/types/funcs.py
54 55 | |
check_cb ¶
check_cb(
callback: Callable[P, tuple[T, bool]],
) -> Callable[P, T | SentinelDispatcher]
Source code in jetpytools/types/funcs.py
57 58 59 60 61 62 63 64 | |
filter ¶
filter(items: Iterable[T | SentinelDispatcher]) -> Iterator[T]
Source code in jetpytools/types/funcs.py
66 67 68 69 70 | |
filter_multi classmethod ¶
filter_multi(
items: Iterable[T | SentinelDispatcher], *sentinels: SentinelDispatcher
) -> Iterator[T]
Source code in jetpytools/types/funcs.py
72 73 74 75 76 77 78 79 80 81 | |
StrList ¶
StrList(iterable: Iterable[SupportsString | None] | None = ...)
Bases: list[SupportsString]
Custom class for representing a recursively "stringable" list.
Methods:
Attributes:
Source code in jetpytools/types/funcs.py
21 | |
append ¶
append(*__object: SupportsString) -> None
Source code in jetpytools/types/funcs.py
48 49 50 | |