This commit is contained in:
Trinh Anh Ngoc
2023-05-18 21:53:19 +07:00
parent 2ac563d095
commit df25a3d073
6 changed files with 0 additions and 14 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: ...
@@ -74,7 +73,6 @@ MAGIC_COLUMNS: list[str]
VALID_AGGREGATE_FUNCTIONS: set[str] VALID_AGGREGATE_FUNCTIONS: set[str]
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

@@ -116,7 +116,6 @@ class BaseCase(TreeCase):
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

@@ -151,7 +151,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: ...
@@ -175,7 +174,6 @@ class frozendict(dict):
def __hash__(self) -> int: ... def __hash__(self) -> int: ...
class Collector(Mapping[_KT, _VT]): class Collector(Mapping[_KT, _VT]):
__slots__ = ["map"]
_map: dict _map: dict
def __init__(self) -> None: ... def __init__(self) -> None: ...
def add(self, key: _KT, val: _T) -> None: ... def add(self, key: _KT, val: _T) -> None: ...
@@ -185,7 +183,6 @@ class Collector(Mapping[_KT, _VT]):
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): ...
@@ -198,7 +195,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: ...
@@ -211,7 +207,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: ...
@@ -220,7 +215,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: ...
@@ -232,7 +226,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

@@ -59,7 +59,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: ...