From 757a010172f1c3061d3efe2b7740bb32f08a1f74 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 19 Apr 2024 16:18:57 +0500 Subject: [PATCH] typing --- src/ifcopenshell-python/ifcopenshell/util/unit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/unit.py b/src/ifcopenshell-python/ifcopenshell/util/unit.py index a218a9504f..102b7b0d61 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/unit.py +++ b/src/ifcopenshell-python/ifcopenshell/util/unit.py @@ -604,8 +604,8 @@ def format_length( decimal_places: int = 2, suppress_zero_inches=True, unit_system: Literal["metric", "imperial"] = "imperial", - input_unit="foot", - output_unit="foot", + input_unit: Literal["foot", "inch"] = "foot", + output_unit: Literal["foot", "inch"] = "foot", ) -> str: """Formats a length for readability and imperial formatting