diff --git a/stubs/decorator/METADATA.toml b/stubs/decorator/METADATA.toml index 2c151642b..4c67f14af 100644 --- a/stubs/decorator/METADATA.toml +++ b/stubs/decorator/METADATA.toml @@ -1 +1,4 @@ version = "5.1.*" + +[tool.stubtest] +ignore_missing_stub = false diff --git a/stubs/decorator/decorator.pyi b/stubs/decorator/decorator.pyi index 36dcfe813..36ac4209f 100644 --- a/stubs/decorator/decorator.pyi +++ b/stubs/decorator/decorator.pyi @@ -1,7 +1,7 @@ from builtins import dict as _dict # alias to avoid conflicts with attribute name from collections.abc import Callable, Iterator from contextlib import _GeneratorContextManager -from inspect import getfullargspec as getfullargspec, iscoroutinefunction as iscoroutinefunction +from inspect import Signature, getfullargspec as getfullargspec, iscoroutinefunction as iscoroutinefunction from re import Pattern from typing import Any, TypeVar from typing_extensions import ParamSpec @@ -56,7 +56,9 @@ class FunctionMaker: **attrs: Any, ) -> Callable[..., Any]: ... +def fix(args: tuple[Any, ...], kwargs: dict[str, Any], sig: Signature) -> tuple[tuple[Any, ...], dict[str, Any]]: ... def decorate(func: _Func, caller: Callable[..., Any], extras: Any = ...) -> _Func: ... +def decoratorx(caller: Callable[..., Any]) -> Callable[..., Any]: ... def decorator( caller: Callable[..., Any], _func: Callable[..., Any] | None = ... ) -> Callable[[Callable[..., Any]], Callable[..., Any]]: ... @@ -65,4 +67,5 @@ class ContextManager(_GeneratorContextManager[_T]): def __call__(self, func: _C) -> _C: ... def contextmanager(func: Callable[_P, Iterator[_T]]) -> Callable[_P, ContextManager[_T]]: ... +def append(a: type, vancestors: list[type]) -> None: ... def dispatch_on(*dispatch_args: Any) -> Callable[[Callable[..., Any]], Callable[..., Any]]: ...