Why does pycharm propose to change method to static

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()
posted @ 2019-08-11 15:23  Coodyzのblog  阅读(204)  评论(0编辑  收藏  举报