Code styling tweaks to core utils & YAML loader (#85433)

Code styling tweaks to core utils
This commit is contained in:
Franck Nijhof 2023-01-09 07:01:55 +01:00 committed by GitHub
parent aa1c539683
commit 7adb8d5ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 68 additions and 51 deletions

View file

@ -342,8 +342,8 @@ class TemperatureConverter(BaseUnitConverter):
For converting an interval between two temperatures, please use
`convert_interval` instead.
"""
# We cannot use the implementation from BaseUnitConverter here because the temperature
# units do not use the same floor: 0°C, 0°F and 0K do not align
# We cannot use the implementation from BaseUnitConverter here because the
# temperature units do not use the same floor: 0°C, 0°F and 0K do not align
if from_unit == to_unit:
return value