mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Cleanup
This commit is contained in:
@@ -54,7 +54,6 @@ class MetaModel(api.Meta):
|
|||||||
def _get_addon_name(self, full_name: str) -> str: ...
|
def _get_addon_name(self, full_name: str) -> str: ...
|
||||||
|
|
||||||
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: ...
|
||||||
|
|||||||
@@ -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): ...
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ from typing import Any, Generator, Iterator
|
|||||||
__all__ = ["LRU"]
|
__all__ = ["LRU"]
|
||||||
|
|
||||||
class LRUNode:
|
class LRUNode:
|
||||||
__slots__ = ["prev", "next", "me"]
|
|
||||||
prev: Any
|
prev: Any
|
||||||
me: Any
|
me: Any
|
||||||
next: Any
|
next: Any
|
||||||
|
|||||||
@@ -149,7 +149,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: ...
|
||||||
@@ -173,7 +172,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: ...
|
||||||
@@ -182,7 +180,6 @@ class Collector(Mapping[_KT, _VT]):
|
|||||||
def __len__(self) -> int: ...
|
def __len__(self) -> int: ...
|
||||||
|
|
||||||
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): ...
|
||||||
@@ -195,7 +192,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: ...
|
||||||
@@ -208,7 +204,6 @@ class LastOrderedSet(OrderedSet):
|
|||||||
def add(self, elem) -> None: ...
|
def add(self, elem) -> 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: ...
|
||||||
@@ -220,7 +215,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: ...
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ class GettextAlias:
|
|||||||
def _get_translation(self, source: str) -> str: ...
|
def _get_translation(self, source: str) -> str: ...
|
||||||
|
|
||||||
class _lt:
|
class _lt:
|
||||||
__slots__ = ["_source"]
|
|
||||||
_source: str
|
_source: str
|
||||||
def __init__(self, source: str) -> None: ...
|
def __init__(self, source: str) -> None: ...
|
||||||
def __str__(self) -> str: ...
|
def __str__(self) -> str: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user