Update stubs

This commit is contained in:
Trinh Anh Ngoc
2022-10-07 22:47:08 +07:00
parent f1e2217ed7
commit 09d89a7c60
5 changed files with 61 additions and 46 deletions

View File

@@ -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']