规则:Undefined-Variable 在大多数编程语言中,使用未定义的变量可能会导致程序中出现错误或意外行为。在使用变量之前正确声明和初始化变量以确保程序正确运行非常重要。
def switch(self): switch_out = getattr(getcurrent(), 'switch_out', None) # pylint:disable=undefined-variable switch_out is not None: switch_out() return _greenlet_switch(self) # pylint:disable=undefined-variable
grayscott 120 胞腔 代码:69 lines (48 sloc) 2.18 KB # pylint: disable=unused-import # pylint: disable=undefined-variable