From 1f76b62580294ed65d6da8ba2b1f9afecc0c4c25 Mon Sep 17 00:00:00 2001 From: Tim Rid <6593626+timrid@users.noreply.github.com> Date: Sat, 22 May 2021 13:12:48 +0200 Subject: [PATCH] added missing methods to stub file --- construct-stubs/lib/containers.pyi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/construct-stubs/lib/containers.pyi b/construct-stubs/lib/containers.pyi index 7dd34e3..a50033a 100644 --- a/construct-stubs/lib/containers.pyi +++ b/construct-stubs/lib/containers.pyi @@ -6,9 +6,23 @@ ListType = t.TypeVar("ListType") SearchPattern = t.Union[t.AnyStr, re.Pattern[t.AnyStr]] +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]]: ... + class Container(t.Generic[ContainerType], t.Dict[str, ContainerType]): def __getattr__(self, name: str) -> ContainerType: ... - def update(self, seqordict: t.Union[t.Dict[str, ContainerType], t.Tuple[str, ContainerType]]) -> None: ... + def update( + self, + seqordict: t.Union[t.Dict[str, ContainerType], t.Tuple[str, ContainerType]], + ) -> None: ... def search(self, pattern: SearchPattern[t.Any]) -> t.Any: ... def search_all(self, pattern: SearchPattern[t.Any]) -> t.Any: ...