mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 03:21:00 +00:00
typing: modernize Generator annotations
`None, None` assumed by default. Though this was introduced in Python 3.13, before 3.13 it only breaks if we'd do `typing.Generator[T]` (which is deprecated) -`collections.abc.Generator[T]` works fine, it seems it never had an arity check.
This commit is contained in:
@@ -879,7 +879,7 @@ def get_coordinate_elements(ifc_file: ifcopenshell.file) -> list[dict[str, Any]]
|
||||
return results
|
||||
|
||||
|
||||
def get_coordinate_data_(element: ifcopenshell.entity_instance) -> Generator[dict[str, Any], None, None]:
|
||||
def get_coordinate_data_(element: ifcopenshell.entity_instance) -> Generator[dict[str, Any]]:
|
||||
M_TRANSLATION = (slice(0, 3), 3)
|
||||
element_name = val(element.Name)
|
||||
element_class = element.is_a()
|
||||
|
||||
Reference in New Issue
Block a user