mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
black
This commit is contained in:
@@ -146,7 +146,7 @@ class entity_instance_mixin:
|
|||||||
for sty in yield_supertypes():
|
for sty in yield_supertypes():
|
||||||
if fn := getattr(rules, f"calc_{sty}_{name}", None):
|
if fn := getattr(rules, f"calc_{sty}_{name}", None):
|
||||||
return fn(self)
|
return fn(self)
|
||||||
|
|
||||||
raise AttributeError("entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name))
|
raise AttributeError("entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -895,7 +895,7 @@ class file_mixin:
|
|||||||
|
|
||||||
def to_string(self) -> str:
|
def to_string(self) -> str:
|
||||||
return self.to_string()
|
return self.to_string()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _determine_schema_identifier(
|
def _determine_schema_identifier(
|
||||||
schema: Optional[ifcopenshell.util.schema.IFC_SCHEMA] = None,
|
schema: Optional[ifcopenshell.util.schema.IFC_SCHEMA] = None,
|
||||||
|
|||||||
@@ -507,7 +507,11 @@ def create_shape(
|
|||||||
"""
|
"""
|
||||||
return wrap_shape_creation(
|
return wrap_shape_creation(
|
||||||
settings,
|
settings,
|
||||||
ifcopenshell_wrapper.create_shape(settings, inst, repr, geometry_library) if repr else ifcopenshell_wrapper.create_shape(settings, inst, geometry_library),
|
(
|
||||||
|
ifcopenshell_wrapper.create_shape(settings, inst, repr, geometry_library)
|
||||||
|
if repr
|
||||||
|
else ifcopenshell_wrapper.create_shape(settings, inst, geometry_library)
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user