Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-06 22:50:00 +07:00
parent 63ad4a9db3
commit f1e2217ed7

View File

@@ -1,8 +1,10 @@
import pickle as pickle_ import pickle as pickle_
from collections import deque
from collections.abc import Mapping, MutableMapping, MutableSet from collections.abc import Mapping, MutableMapping, MutableSet
from logging import Filter, LogRecord from logging import Filter, LogRecord
from typing import Any, Collection, Generic, IO, AnyStr, Iterable, Iterator, NoReturn, TypeVar, Callable from typing import Any, Collection, Generic, IO, AnyStr, ItemsView, Iterable, Iterator, NoReturn, TypeVar, Callable
import markupsafe
import xlsxwriter import xlsxwriter
import xlwt import xlwt
from babel.core import Locale from babel.core import Locale
@@ -132,67 +134,67 @@ class Collector(dict[_KT, tuple[_T]]):
def discard_keys_and_values(self, excludes: Collection): ... def discard_keys_and_values(self, excludes: Collection): ...
class StackMap(MutableMapping): class StackMap(MutableMapping):
__slots__: Any __slots__ = ['_maps']
_maps: Any _maps: list[MutableMapping]
def __init__(self, m: Any | None = ...) -> None: ... def __init__(self, m: MutableMapping | None = ...) -> None: ...
def __getitem__(self, key): ... def __getitem__(self, key): ...
def __setitem__(self, key, val) -> None: ... def __setitem__(self, key, val) -> None: ...
def __delitem__(self, key) -> None: ... def __delitem__(self, key) -> None: ...
def __iter__(self): ... def __iter__(self) -> Iterator: ...
def __len__(self): ... def __len__(self) -> int: ...
def __str__(self): ... def __str__(self) -> str: ...
def pushmap(self, m: Any | None = ...) -> None: ... def pushmap(self, m: MutableMapping | None = ...) -> None: ...
def popmap(self): ... def popmap(self) -> MutableMapping: ...
class OrderedSet(MutableSet): class OrderedSet(MutableSet):
__slots__: Any __slots__ = ['_map']
_map: Any _map: dict
def __init__(self, elems=...) -> None: ... def __init__(self, elems: Iterable = ...) -> None: ...
def __contains__(self, elem): ... def __contains__(self, elem) -> bool: ...
def __iter__(self): ... def __iter__(self) -> Iterator: ...
def __len__(self): ... def __len__(self) -> int: ...
def add(self, elem) -> None: ... def add(self, elem) -> None: ...
def discard(self, elem) -> None: ... def discard(self, elem) -> None: ...
def update(self, elems) -> None: ... def update(self, elems: Iterable) -> None: ...
def difference_update(self, elems) -> None: ... def difference_update(self, elems: Iterable) -> None: ...
def __repr__(self): ... def __repr__(self) -> str: ...
class LastOrderedSet(OrderedSet): class LastOrderedSet(OrderedSet):
def add(self, elem) -> None: ... def add(self, elem) -> None: ...
class Callbacks: class Callbacks:
__slots__: Any __slots__ = ['_funcs', 'data']
_funcs: Any _funcs: deque
data: Any data: dict
def __init__(self) -> None: ... def __init__(self) -> None: ...
def add(self, func) -> None: ... def add(self, func: Callable) -> None: ...
def run(self) -> None: ... def run(self) -> None: ...
def clear(self) -> None: ... def clear(self) -> None: ...
class IterableGenerator: class IterableGenerator(Generic[_T]):
__slots__: Any __slots__ = ['func', 'args']
func: Any func: Callable
args: Any args: tuple
def __init__(self, func, *args) -> None: ... def __init__(self, func: Callable[..., _T], *args) -> None: ...
def __iter__(self): ... def __iter__(self) -> _T: ...
def groupby(iterable, key: Any | None = ...): ... def groupby(iterable: Iterable[_T], key: Callable[..., _T1] | None = ...) -> ItemsView[_T1, _T]: ...
def unique(it) -> None: ... def unique(it: Iterable[_T]) -> Iterator[_T]: ...
class Reverse: class Reverse:
__slots__: Any __slots__ = ['val']
val: Any val: Any
def __init__(self, val) -> None: ... def __init__(self, val) -> None: ...
def __eq__(self, other): ... def __eq__(self, other) -> bool: ...
def __ne__(self, other): ... def __ne__(self, other) -> bool: ...
def __ge__(self, other): ... def __ge__(self, other) -> bool: ...
def __gt__(self, other): ... def __gt__(self, other) -> bool: ...
def __le__(self, other): ... def __le__(self, other) -> bool: ...
def __lt__(self, other): ... def __lt__(self, other) -> bool: ...
def ignore(*exc) -> None: ... def ignore(*exc) -> None: ...
html_escape: Any html_escape = markupsafe.escape
def get_lang(env, lang_code: str = ...): ... def get_lang(env, lang_code: str = ...): ...
def babel_locale_parse(lang_code): ... def babel_locale_parse(lang_code): ...