diff --git a/src/ifcopenshell-python/ifcopenshell/__init__.py b/src/ifcopenshell-python/ifcopenshell/__init__.py index ea695fed78..310eb4bb37 100644 --- a/src/ifcopenshell-python/ifcopenshell/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/__init__.py @@ -254,7 +254,7 @@ def schema_by_name( return ifcopenshell_wrapper.schema_by_name(schema) -def guess_format(path: Path) -> Union[str | None]: +def guess_format(path: Path) -> Union[str, None]: """Guesses the IFC format using file extension IFCs may be serialised as different formats. The most common is a ``.ifc``