diff options
| author | Scott <[email protected]> | 2022-01-26 21:35:20 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-26 21:35:20 -0800 |
| commit | e6f32fdd9b373dfcd100c7accb41f57d83c2f0a1 (patch) | |
| tree | eea4985bc43238fbd070c783441f08988f581973 /conversion_utils.py | |
| parent | 36fea7f15ed17150691b5b3ead75450e575229ef (diff) | |
Ahem. Still running black?
Diffstat (limited to 'conversion_utils.py')
| -rw-r--r-- | conversion_utils.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/conversion_utils.py b/conversion_utils.py index 4326840..684edc0 100644 --- a/conversion_utils.py +++ b/conversion_utils.py @@ -86,9 +86,7 @@ conversion_catalog = { lambda c: c * 1.8 + 32.0, "°F", ), - "Celsius": Converter( - "Celsius", "temperature", lambda c: c, lambda c: c, "°C" - ), + "Celsius": Converter("Celsius", "temperature", lambda c: c, lambda c: c, "°C"), "Kelvin": Converter( "Kelvin", "temperature", @@ -109,9 +107,7 @@ def convert(magnitude: Number, from_thing: str, to_thing: str) -> float: return _convert(magnitude, src, dst) -def _convert( - magnitude: Number, from_unit: Converter, to_unit: Converter -) -> float: +def _convert(magnitude: Number, from_unit: Converter, to_unit: Converter) -> float: canonical = from_unit.to_canonical(magnitude) converted = to_unit.from_canonical(canonical) return float(converted) |
