Why does pycharm propose to change method to static
方法一:
def bar(self): self.is_not_used() doing_something_without_self() def is_not_used(self): pass
方法二:
# noinspection PyMethodMayBeStatic def bar(self): doing_something_without_self()
方法一:
def bar(self): self.is_not_used() doing_something_without_self() def is_not_used(self): pass
方法二:
# noinspection PyMethodMayBeStatic def bar(self): doing_something_without_self()
转载于:https://www.cnblogs.com/coodyz/p/11335140.html