From eda3f36cb94ae16059d24385caec093b4c50a40a Mon Sep 17 00:00:00 2001 From: rchen152 Date: Thu, 15 Mar 2018 15:59:14 -0700 Subject: [PATCH] Make abc.abstractproperty a class inheriting from property. (#1964) --- stdlib/3/abc.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/abc.pyi b/stdlib/3/abc.pyi index f50f7908d..b109ea74d 100644 --- a/stdlib/3/abc.pyi +++ b/stdlib/3/abc.pyi @@ -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: ...