summaryrefslogtreecommitdiff
path: root/taskflow/engines/base.py
diff options
context:
space:
mode:
authorljhuang <huang.liujie@99cloud.net>2022-08-03 16:21:36 +0800
committerljhuang <huang.liujie@99cloud.net>2022-08-03 20:37:13 +0800
commit56413aa3c5e630257afcb2c2874c46cd7a3955b1 (patch)
treee5dd47ea3ed2c7d4033cde6467c2128e0452add2 /taskflow/engines/base.py
parent3bb577e338b0dcb011863f67b933a35b735c98c4 (diff)
downloadtaskflow-56413aa3c5e630257afcb2c2874c46cd7a3955b1.tar.gz
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: I1bcecd99d8856c26621a5304d9f7f01f8f111918
Diffstat (limited to 'taskflow/engines/base.py')
-rw-r--r--taskflow/engines/base.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/taskflow/engines/base.py b/taskflow/engines/base.py
index 92ecdbd..3331c1e 100644
--- a/taskflow/engines/base.py
+++ b/taskflow/engines/base.py
@@ -55,11 +55,13 @@ class Engine(object, metaclass=abc.ABCMeta):
"""The options that were passed to this engine on construction."""
return self._options
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def storage(self):
"""The storage unit for this engine."""
- @abc.abstractproperty
+ @property
+ @abc.abstractmethod
def statistics(self):
"""A dictionary of runtime statistics this engine has gathered.