mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 08:34:23 +08:00
Mark decorator as complete (#8897)
This commit is contained in:
@@ -1 +1,4 @@
|
||||
version = "5.1.*"
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = false
|
||||
|
||||
@@ -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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user