This commit is contained in:
Trinh Anh Ngoc
2023-05-18 21:51:34 +07:00
parent f7cd5b8c90
commit 25f426ca78
6 changed files with 0 additions and 15 deletions

View File

@@ -54,7 +54,6 @@ class MetaModel(api.Meta):
) -> None: ... ) -> None: ...
class NewId: class NewId:
__slots__: list[str]
origin: int | None origin: int | None
ref: Any ref: Any
def __init__(self, origin: int | None = ..., ref: Any | None = ...) -> None: ... def __init__(self, origin: int | None = ..., ref: Any | None = ...) -> None: ...
@@ -77,7 +76,6 @@ def is_definition_class(cls) -> bool: ...
def is_registry_class(cls) -> bool: ... def is_registry_class(cls) -> bool: ...
class BaseModel(metaclass=MetaModel): class BaseModel(metaclass=MetaModel):
__slots__: list[str]
_auto: bool _auto: bool
_register: bool _register: bool
_abstract: bool _abstract: bool

View File

@@ -133,7 +133,6 @@ class BaseCase(unittest.TestCase, metaclass=MetaCase):
def _callSetUp(self) -> None: ... def _callSetUp(self) -> None: ...
class _ErrorCatcher(list): class _ErrorCatcher(list):
__slots__ = ["test"]
test: TestCase test: TestCase
def __init__(self, test: TestCase) -> None: ... def __init__(self, test: TestCase) -> None: ...
def append(self, error) -> None: ... def append(self, error) -> None: ...

View File

@@ -13,14 +13,12 @@ _sha1_re: Pattern
def generate_key(salt: Any = ...) -> str: ... def generate_key(salt: Any = ...) -> str: ...
class ModificationTrackingDict(CallbackDict): class ModificationTrackingDict(CallbackDict):
__slots__ = ("modified",)
modified: bool modified: bool
def __init__(self, *args, **kwargs): ... def __init__(self, *args, **kwargs): ...
def copy(self: _ModificationTrackingDictT) -> _ModificationTrackingDictT: ... def copy(self: _ModificationTrackingDictT) -> _ModificationTrackingDictT: ...
def __copy__(self: _ModificationTrackingDictT) -> _ModificationTrackingDictT: ... def __copy__(self: _ModificationTrackingDictT) -> _ModificationTrackingDictT: ...
class Session(ModificationTrackingDict): class Session(ModificationTrackingDict):
__slots__ = ("modified", "sid", "new")
sid: str sid: str
new: bool new: bool
def __init__(self, data, sid, new: bool = ...): ... def __init__(self, data, sid, new: bool = ...): ...

View File

@@ -26,7 +26,6 @@ class _ClassProperty(property, Generic[_T]):
def classproperty(func: Callable[..., _T]) -> _ClassProperty[_T]: ... def classproperty(func: Callable[..., _T]) -> _ClassProperty[_T]: ...
class lazy: class lazy:
__slots__ = ["_func", "_args", "_kwargs", "_cached_value"]
def __init__(self, func, *args, **kwargs) -> None: ... def __init__(self, func, *args, **kwargs) -> None: ...
@property @property
def _value(self): ... def _value(self): ...

View File

@@ -142,7 +142,6 @@ class CountingStream(Generic[_T]):
def stripped_sys_argv(*strip_args: str) -> list[str]: ... def stripped_sys_argv(*strip_args: str) -> list[str]: ...
class ConstantMapping(Mapping[_KT, _VT]): class ConstantMapping(Mapping[_KT, _VT]):
__slots__ = ["_value"]
_value: _VT _value: _VT
def __init__(self, val: _VT) -> None: ... def __init__(self, val: _VT) -> None: ...
def __len__(self) -> int: ... def __len__(self) -> int: ...
@@ -156,7 +155,6 @@ def freehash(arg) -> int: ...
def clean_context(context: dict[str, Any]) -> dict[str, Any]: ... def clean_context(context: dict[str, Any]) -> dict[str, Any]: ...
class frozendict(dict): class frozendict(dict):
__slots__ = ()
def __delitem__(self, key) -> NoReturn: ... def __delitem__(self, key) -> NoReturn: ...
def __setitem__(self, key, val) -> NoReturn: ... def __setitem__(self, key, val) -> NoReturn: ...
def clear(self) -> NoReturn: ... def clear(self) -> NoReturn: ...
@@ -167,14 +165,12 @@ class frozendict(dict):
def __hash__(self) -> int: ... def __hash__(self) -> int: ...
class Collector(dict[_KT, tuple[_T]]): class Collector(dict[_KT, tuple[_T]]):
__slots__ = ()
def __getitem__(self, key: _KT) -> tuple[_T]: ... def __getitem__(self, key: _KT) -> tuple[_T]: ...
def __setitem__(self, key: _KT, val: Iterable[_T]) -> None: ... def __setitem__(self, key: _KT, val: Iterable[_T]) -> None: ...
def add(self, key: _KT, val: _T) -> None: ... def add(self, key: _KT, val: _T) -> None: ...
def discard_keys_and_values(self, excludes: Collection): ... def discard_keys_and_values(self, excludes: Collection): ...
class StackMap(MutableMapping): class StackMap(MutableMapping):
__slots__ = ["_maps"]
_maps: list[MutableMapping] _maps: list[MutableMapping]
def __init__(self, m: MutableMapping | None = ...) -> None: ... def __init__(self, m: MutableMapping | None = ...) -> None: ...
def __getitem__(self, key): ... def __getitem__(self, key): ...
@@ -187,7 +183,6 @@ class StackMap(MutableMapping):
def popmap(self) -> MutableMapping: ... def popmap(self) -> MutableMapping: ...
class OrderedSet(MutableSet): class OrderedSet(MutableSet):
__slots__ = ["_map"]
_map: dict _map: dict
def __init__(self, elems: Iterable = ...) -> None: ... def __init__(self, elems: Iterable = ...) -> None: ...
def __contains__(self, elem) -> bool: ... def __contains__(self, elem) -> bool: ...
@@ -203,7 +198,6 @@ class LastOrderedSet(OrderedSet):
def add(self, elem) -> None: ... def add(self, elem) -> None: ...
class Callbacks: class Callbacks:
__slots__ = ["_funcs", "data"]
_funcs: deque _funcs: deque
data: dict data: dict
def __init__(self) -> None: ... def __init__(self) -> None: ...
@@ -212,7 +206,6 @@ class Callbacks:
def clear(self) -> None: ... def clear(self) -> None: ...
class IterableGenerator(Generic[_T]): class IterableGenerator(Generic[_T]):
__slots__ = ["func", "args"]
func: Callable func: Callable
args: tuple args: tuple
def __init__(self, func: Callable[..., _T], *args) -> None: ... def __init__(self, func: Callable[..., _T], *args) -> None: ...
@@ -224,7 +217,6 @@ def groupby(
def unique(it: Iterable[_T]) -> Iterator[_T]: ... def unique(it: Iterable[_T]) -> Iterator[_T]: ...
class Reverse: class Reverse:
__slots__ = ["val"]
val: Any val: Any
def __init__(self, val) -> None: ... def __init__(self, val) -> None: ...
def __eq__(self, other) -> bool: ... def __eq__(self, other) -> bool: ...

View File

@@ -62,7 +62,6 @@ class GettextAlias:
def _get_translation(self, source: str) -> str: ... def _get_translation(self, source: str) -> str: ...
class _lt: class _lt:
__slots__ = ["_source", "_args"]
_source: str _source: str
_args: tuple _args: tuple
def __init__(self, source: str, *args, **kwargs) -> None: ... def __init__(self, source: str, *args, **kwargs) -> None: ...