mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Fix Python <3.10 support #6141
This commit is contained in:
@@ -146,7 +146,7 @@ def get_representation(
|
||||
return r
|
||||
|
||||
|
||||
def guess_type(items: Sequence[ifcopenshell.entity_instance]) -> str | None:
|
||||
def guess_type(items: Sequence[ifcopenshell.entity_instance]) -> Union[str, None]:
|
||||
"""Guesses the appropriate RepresentationType attribute based on a list of items
|
||||
|
||||
:param items: A list of IfcRepresentationItem, typically in an IfcShapeRepresentation
|
||||
|
||||
Reference in New Issue
Block a user