Make abc.abstractproperty a class inheriting from property. (#1964)

This commit is contained in:
rchen152
2018-03-15 15:59:14 -07:00
committed by Guido van Rossum
parent 5af337b438
commit eda3f36cb9

View File

@@ -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: ...