close
doesn't contain any code 48 def isListening(self) -> bool:
49 return False
50
51 def close(self): ... 52
53 def errorString(self) -> str:
54 return 'error'
execute
doesn't contain any code 32 def output_editor(self):
33 return self._output_editor
34
35 def execute(self): 36 pass
37
38
close
doesn't contain any code 48 def isListening(self) -> bool:
49 return False
50
51 def close(self): ... 52
53 def errorString(self) -> str:
54 return 'error'
execute
doesn't contain any code 32 def output_editor(self):
33 return self._output_editor
34
35 def execute(self): 36 pass
37
38
close
doesn't contain any code 48 def isListening(self) -> bool:
49 return False
50
51 def close(self): ... 52
53 def errorString(self) -> str:
54 return 'error'
The function/method has been left empty here, without any comment or docstring. This can cause confusion later on why this was left empty.
def myfunc1(foo="Noncompliant"):
pass
class MyClass:
def mymethod1(self, foo="Noncompliant"):
pass
def myfunc1():
pass # comment explaining why this function is empty
def myfunc2():
raise NotImplementedError()
def myfunc3():
'''
Docstring explaining why this function is empty.
'''
class MyClass:
def mymethod1(self):
pass # comment explaining why this function is empty
def mymethod2(self):
raise NotImplementedError()
def mymethod3(self):
'''
Docstring explaining why this method is empty. Note that this is not recommended for classes
which are meant to be subclassed.
'''