mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -1,27 +1,29 @@
|
||||
from json import JSONEncoder as JSONEncoder
|
||||
from typing import Any, Callable
|
||||
from typing import Callable, Generic, TypeVar
|
||||
|
||||
class lazy_property:
|
||||
fget: Any
|
||||
def __init__(self, fget) -> None: ...
|
||||
def __get__(self, obj, cls): ...
|
||||
_T = TypeVar('_T')
|
||||
|
||||
class lazy_property(Generic[_T]):
|
||||
fget: Callable[..., _T]
|
||||
def __init__(self, fget: Callable[..., _T]) -> None: ...
|
||||
def __get__(self, obj, cls) -> _T: ...
|
||||
@property
|
||||
def __doc__(self): ...
|
||||
@staticmethod
|
||||
def reset_all(obj) -> None: ...
|
||||
|
||||
class lazy_classproperty(lazy_property):
|
||||
def __get__(self, obj, cls): ...
|
||||
class lazy_classproperty(lazy_property[_T]):
|
||||
def __get__(self, obj, cls) -> _T: ...
|
||||
|
||||
def conditional(condition, decorator): ...
|
||||
def synchronized(lock_attr: str = ...): ...
|
||||
def frame_codeinfo(fframe, back: int = ...): ...
|
||||
def compose(a: Callable, b: Callable): ...
|
||||
def compose(a: Callable[..., _T], b: Callable) -> Callable[..., _T]: ...
|
||||
|
||||
class _ClassProperty(property):
|
||||
def __get__(self, cls, owner): ...
|
||||
class _ClassProperty(property, Generic[_T]):
|
||||
def __get__(self, cls, owner) -> _T: ...
|
||||
|
||||
def classproperty(func): ...
|
||||
def classproperty(func: Callable[..., _T]) -> _ClassProperty[_T]: ...
|
||||
|
||||
class lazy:
|
||||
__slots__ = ['_func', '_args', '_kwargs', '_cached_value']
|
||||
|
||||
Reference in New Issue
Block a user