mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Make abc.abstractproperty a class inheriting from property. (#1964)
This commit is contained in:
committed by
Guido van Rossum
parent
5af337b438
commit
eda3f36cb9
@@ -13,7 +13,7 @@ class ABCMeta(type):
|
||||
def register(cls: "ABCMeta", subclass: Type[Any]) -> None: ...
|
||||
|
||||
def abstractmethod(callable: _FuncT) -> _FuncT: ...
|
||||
def abstractproperty(callable: _FuncT) -> _FuncT: ...
|
||||
class abstractproperty(property): ...
|
||||
# These two are deprecated and not supported by mypy
|
||||
def abstractstaticmethod(callable: _FuncT) -> _FuncT: ...
|
||||
def abstractclassmethod(callable: _FuncT) -> _FuncT: ...
|
||||
|
||||
Reference in New Issue
Block a user