Mark decorator as complete (#8897)

This commit is contained in:
Nikita Sobolev authored and GitHub committed 2022-10-14 11:02:38 -07:00
1 parent f9ed090cfc
commit 9668ecd27c
2 files changed
+7 -1

No files matched your search

+3
View File
@@ -1 +1,4 @@
version = "5.1.*"
[tool.stubtest]
ignore_missing_stub = false
+4 -1
View File
@@ -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]]: ...