mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
style: fix formatting with black
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user