mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-04 02:23:24 +08:00
Avoid using string literals in type annotations (#2294)
This commit is contained in:
committed by
Jelle Zijlstra
parent
25ad95de4f
commit
6192cce9d9
@@ -6,7 +6,7 @@ _FuncT = TypeVar('_FuncT', bound=Callable[..., Any])
|
||||
|
||||
# Thesee definitions have special processing in mypy
|
||||
class ABCMeta(type):
|
||||
def register(cls: "ABCMeta", subclass: Type[_T]) -> Type[_T]: ...
|
||||
def register(cls: ABCMeta, subclass: Type[_T]) -> Type[_T]: ...
|
||||
|
||||
def abstractmethod(callable: _FuncT) -> _FuncT: ...
|
||||
class abstractproperty(property): ...
|
||||
|
||||
Reference in New Issue
Block a user