funcs ¶
Classes:
-
StrList–Custom class for representing a recursively "stringable" list.
Attributes:
SentinelDispatcher ¶
Methods:
-
__call__– -
check– -
check_cb– -
filter– -
filter_multi–
__call__ ¶
__call__() -> SentinelDispatcher
Source code in jetpytools/types/funcs.py
90 91 | |
check ¶
check(ret_value: T, cond: bool) -> T | SentinelDispatcher
Source code in jetpytools/types/funcs.py
53 54 | |
check_cb ¶
check_cb(
callback: Callable[P, tuple[T, bool]],
) -> Callable[P, T | SentinelDispatcher]
Source code in jetpytools/types/funcs.py
56 57 58 59 60 61 62 63 | |
filter ¶
filter(items: Iterable[T | SentinelDispatcher]) -> Iterator[T]
Source code in jetpytools/types/funcs.py
65 66 67 68 69 | |
filter_multi classmethod ¶
filter_multi(
items: Iterable[T | SentinelDispatcher], *sentinels: SentinelDispatcher
) -> Iterator[T]
Source code in jetpytools/types/funcs.py
71 72 73 74 75 76 77 78 79 80 | |
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
20 | |
append ¶
append(*__object: SupportsString) -> None
Source code in jetpytools/types/funcs.py
47 48 49 | |