Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions qcore/decorators.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ from typing import (
Callable,
ContextManager,
Generic,
Optional,
Tuple,
Type,
TypeVar,
Optional,
Union,
)

Expand All @@ -32,7 +32,9 @@ class DecoratorBase(Generic[_T]):
def is_decorator(self) -> bool: ...
@abstractmethod
def __call__(self, *args: Any, **kwargs: Any) -> _T: ...
def __get__(self, owner: object, cls: Type[object]) -> DecoratorBinder[_T]: ...
def __get__(
self, owner: object, cls: Type[object]
) -> Union[DecoratorBase[_T], DecoratorBinder[_T]]: ...

def decorate(
decorator_cls: Type[DecoratorBase[_T]], *args: Any, **kwargs: Any
Expand Down
Loading