Я начал с этого
Код: Выделить всё
if variable_name == Labels.INVALID:
marked_invalid = True
else:
marked_invalid = False
Код: Выделить всё
The if statement can be replaced with 'var = bool(test)' (simplifiable-if-statement)
Код: Выделить всё
marked_invalid = True if variable_name == Labels.INVALID else False
Код: Выделить всё
The if expression can be replaced with 'test' (simplifiable-if-expression)
Подробнее здесь: https://stackoverflow.com/questions/760 ... expression
Мобильная версия