-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
stubs: improvementImprove/refactor existing annotations, other stubs issuesImprove/refactor existing annotations, other stubs issues
Description
I do not have capacity to open a PR for this, but I would like to suggest the following improvement to decorator.decoratorx
which type-checks fine wherever I use it:
class _DecoratorX(Protocol):
def __call__(
self, caller: Callable[Concatenate[Callable[_P, _T], _P], _T]
) -> Callable[[Callable[_P, _T]], Callable[_P, _T]]: ...
decoratorx: _DecoratorX
Metadata
Metadata
Assignees
Labels
stubs: improvementImprove/refactor existing annotations, other stubs issuesImprove/refactor existing annotations, other stubs issues