Skip to content

Commit ae4da95

Browse files
committed
Fix mypy error: Only instance methods can be decorated with @Property
1 parent 5cec4d8 commit ae4da95

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

testinfra/backend/base.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,7 @@ class BaseBackend(metaclass=abc.ABCMeta):
110110

111111
HAS_RUN_SALT = False
112112
HAS_RUN_ANSIBLE = False
113-
114-
@property
115-
@classmethod
116-
@abc.abstractmethod
117-
def NAME(cls) -> str:
118-
raise NotImplementedError()
113+
NAME: str
119114

120115
def __init__(self, hostname, sudo=False, sudo_user=None, *args, **kwargs):
121116
self._encoding = None

0 commit comments

Comments
 (0)