Add pylint CodeStyle extension (#53147)

This commit is contained in:
Marc Mueller
2021-07-19 15:57:06 +02:00
committed by GitHub
parent c35b5a1c64
commit f6b162bc39
60 changed files with 103 additions and 98 deletions

View File

@@ -91,13 +91,13 @@ class UnitSystem:
"""Initialize the unit system object."""
errors: str = ", ".join(
UNIT_NOT_RECOGNIZED_TEMPLATE.format(unit, unit_type)
for unit, unit_type in [
for unit, unit_type in (
(temperature, TEMPERATURE),
(length, LENGTH),
(volume, VOLUME),
(mass, MASS),
(pressure, PRESSURE),
]
)
if not is_valid_unit(unit, unit_type)
)