mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix bug with TEXT annotations types showing up in TEXT_LEADER annotation types list
This commit is contained in:
@@ -214,7 +214,7 @@ class Drawing(bonsai.core.tool.Drawing):
|
||||
def is_annotation_object_type(
|
||||
cls, element: ifcopenshell.entity_instance, object_types: Union[str, Sequence[str]]
|
||||
) -> bool:
|
||||
if not isinstance(object_types, collections.abc.Iterable):
|
||||
if isinstance(object_types, str):
|
||||
object_types = [object_types]
|
||||
|
||||
element_type = element.is_a()
|
||||
|
||||
Reference in New Issue
Block a user