2020-12-09 21:26:16 +01:00
|
|
|
import re
|
2021-01-01 23:46:43 +01:00
|
|
|
import typing as t
|
2020-12-09 21:26:16 +01:00
|
|
|
|
2020-12-12 13:17:27 +01:00
|
|
|
ContainerType = t.TypeVar("ContainerType")
|
|
|
|
|
ListType = t.TypeVar("ListType")
|
2020-12-09 21:26:16 +01:00
|
|
|
|
2020-12-12 13:17:27 +01:00
|
|
|
SearchPattern = t.Union[t.AnyStr, re.Pattern[t.AnyStr]]
|
2020-12-09 21:26:16 +01:00
|
|
|
|
2021-05-22 13:12:48 +02:00
|
|
|
globalPrintFullStrings: bool
|
|
|
|
|
globalPrintFalseFlags: bool
|
|
|
|
|
globalPrintPrivateEntries: bool
|
|
|
|
|
|
|
|
|
|
def setGlobalPrintFullStrings(enabled: bool = ...) -> None: ...
|
|
|
|
|
def setGlobalPrintFalseFlags(enabled: bool = ...) -> None: ...
|
|
|
|
|
def setGlobalPrintPrivateEntries(enabled: bool = ...) -> None: ...
|
|
|
|
|
def recursion_lock(
|
|
|
|
|
retval: str = ..., lock_name: str = ...
|
|
|
|
|
) -> t.Callable[[t.Callable[..., str]], t.Callable[..., str]]: ...
|
|
|
|
|
|
2021-03-30 19:11:44 +02:00
|
|
|
class Container(t.Generic[ContainerType], t.Dict[str, ContainerType]):
|
2020-12-09 21:26:16 +01:00
|
|
|
def __getattr__(self, name: str) -> ContainerType: ...
|
2025-01-12 12:33:51 +01:00
|
|
|
def update( # type: ignore
|
2021-05-22 13:12:48 +02:00
|
|
|
self,
|
|
|
|
|
seqordict: t.Union[t.Dict[str, ContainerType], t.Tuple[str, ContainerType]],
|
|
|
|
|
) -> None: ...
|
2020-12-12 13:17:27 +01:00
|
|
|
def search(self, pattern: SearchPattern[t.Any]) -> t.Any: ...
|
|
|
|
|
def search_all(self, pattern: SearchPattern[t.Any]) -> t.Any: ...
|
2020-12-09 21:26:16 +01:00
|
|
|
|
2020-12-12 13:17:27 +01:00
|
|
|
class ListContainer(t.List[ListType]):
|
|
|
|
|
def search(self, pattern: SearchPattern[t.Any]) -> t.Any: ...
|
|
|
|
|
def search_all(self, pattern: SearchPattern[t.Any]) -> t.Any: ...
|