update
doesn't contain any code 80 docs_icon = EZ.load_image("Resources/Images/docs_icon.png")
81 EZ.draw_image(docs_icon, x + 20, y + (height - docs_icon.get_height()) / 2)
82
83 def update(self): 84 pass
85
86 def run(self):
check_events
doesn't contain any code195 self.working_directory = os.getcwd()
196 self.explore_app_ui = UI.explore_UI.ExploreUI(self)
197
198 def check_events(self):199 pass
200
201 @staticmethod
check_events
doesn't contain any code195 self.working_directory = os.getcwd()
196 self.explore_app_ui = UI.explore_UI.ExploreUI(self)
197
198 def check_events(self):199 pass
200
201 @staticmethod
update
doesn't contain any code 80 docs_icon = EZ.load_image("Resources/Images/docs_icon.png")
81 EZ.draw_image(docs_icon, x + 20, y + (height - docs_icon.get_height()) / 2)
82
83 def update(self): 84 pass
85
86 def run(self):
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.
'''