From 67fb56966960392c632721bdc9805415afa72fe6 Mon Sep 17 00:00:00 2001 From: smr <67860835+smr02@users.noreply.github.com> Date: Thu, 28 Aug 2025 23:35:50 +0200 Subject: [PATCH] style: fix formatting with black --- src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py index 7d19981a8b..9835b48696 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/occ_utils.py @@ -226,7 +226,7 @@ def serialize_shape(shape): shapes.SetFormatNb(2) shapes.Add(shape) - + # Check if WriteToString method exists and has the correct signature # In PythonOCC >= 7.8.0, WriteToString signature changed and requires additional arguments if hasattr(shapes, "WriteToString"): @@ -240,7 +240,7 @@ def serialize_shape(shape): except (ValueError, TypeError): # If signature inspection fails, fall through to Write() method pass - + # Fall back to Write() method for newer PythonOCC versions (>= 7.8.0) # or when WriteToString is not available/compatible return shapes.Write()