_write_cache
doesn't contain any code322 """Never invalidate cached data."""
323 return False
324
325 def _write_cache(self, data):326 """Never write data."""
327 return
328
__enter__
doesn't contain any code 576 textdata = ''
577 keeptags: list[str] = []
578
579 def __enter__(self) -> None: 580 pass
581
582 def __exit__(self, *exc_info) -> None:
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.
'''