From 7f2c7eb467350f22907d1d7155a87a606a12071e Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 23 May 2024 16:42:19 +0500 Subject: [PATCH] python 3.9 compatibility --- src/ifcopenshell-python/ifcopenshell/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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``