exporter.py
5.66 KB
-
Use flake8 simplify (#4798) · 7aefbd69
* Fix SIM102: Use a single if-statement instead of nested if-statements * Fix SIM105: Use 'contextlib.suppress(...)' instead of try-except-pass * Fix SIM110: Use 'return any(...)' * Fix SIM113: Use enumerate instead of manually incrementing a counter * Fix SIM114: Combine conditions via a logical or to prevent duplicating code * Fix SIM211: Use 'not a' instead of 'False if a else True' * Fix SIM300: Use 'age == 42' instead of '42 == age' (Yoda-conditions) * Fix SIM119: Use dataclasses for data containers * Ignore "SIM106: Handle error-cases first" for now
Randy Döring committed