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