Proposal:
Remove deprecated abc.abstractclassmethod, abc.abstractstaticmethod and abc.abstractproperty for 3.16.
or maybe and an warn:
import warnings
# codes ...
class abstractproperty(property):
__isabstractmethod__ = True
def __init__(self, fget=None, fset=None, fdel=None, doc=None):
warnings.warn(
"abc.abstractproperty is deprecated and will be removed in Python 3.16. "
"Use @property with @abstractmethod instead.",
FutureWarning,
stacklevel=2
)
super().__init__(fget, fset, fdel, doc)
Linked PRs
Proposal:
Remove deprecated
abc.abstractclassmethod,abc.abstractstaticmethodandabc.abstractpropertyfor 3.16.or maybe and an warn:
Linked PRs
abc.{abstractclassmethod,abstractstaticmethod,abstractproperty}#149636