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]):