Add abstractproperty.__new__ so it can be used.

This commit is contained in:
Guido van Rossum
2016-01-06 15:48:47 -08:00
parent cff4aa066b
commit f37bd69266

View File

@@ -30,6 +30,7 @@ class _C:
# TODO: The real abc.abstractproperty inherits from "property".
class abstractproperty(object):
def __new__(cls, func): ...
__doc__ = ... # type: str
__isabstractmethod__ = ... # type: bool
doc = ... # type: Any