Replace abc.abstractproperty with property and abc.abstractmethod

Replace abc.abstractproperty with property and abc.abstractmethod,
as abc.abstractproperty has been deprecated since python3.3[1]

[1]https://docs.python.org/3.8/whatsnew/3.3.html?highlight=deprecated#abc

Change-Id: I96dea752c8ef6ff7dddc205090d2ae7ccc4ce9ab
This commit is contained in:
ljhuang 2022-08-03 20:30:38 +08:00
parent fe81e06d77
commit 6ea71cbd55
1 changed files with 6 additions and 3 deletions

View File

@ -343,17 +343,20 @@ class V1APIExtensionBase(object, metaclass=abc.ABCMeta):
"""
pass
@abc.abstractproperty
@property
@abc.abstractmethod
def name(self):
"""Name of the extension."""
pass
@abc.abstractproperty
@property
@abc.abstractmethod
def alias(self):
"""Alias for the extension."""
pass
@abc.abstractproperty
@property
@abc.abstractmethod
def version(self):
"""Version of the extension."""
pass