From 133ac5de99712d2e8d88a18b699d21148e05d13a Mon Sep 17 00:00:00 2001 From: Trinh Anh Ngoc Date: Sun, 16 Oct 2022 23:17:14 +0700 Subject: [PATCH] Update stubs --- odoo-stubs/tools/func.pyi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/odoo-stubs/tools/func.pyi b/odoo-stubs/tools/func.pyi index b59c017..499501a 100644 --- a/odoo-stubs/tools/func.pyi +++ b/odoo-stubs/tools/func.pyi @@ -16,8 +16,12 @@ 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 filter_kwargs(func, kwargs) -> dict: ... +def synchronized(lock_attr: str = ...) -> Callable[[_T], _T]: ... + +locked: Callable[[_T], _T] + +def frame_codeinfo(fframe, back: int = ...) -> tuple[str | None, str | None]: ... def compose(a: Callable[..., _T], b: Callable) -> Callable[..., _T]: ... class _ClassProperty(property, Generic[_T]):