mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 06:18:32 +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:
@@ -855,7 +855,7 @@ class file_mixin:
|
||||
self.transaction.unbatch()
|
||||
return self.unbatch()
|
||||
|
||||
def __iter__(self) -> Generator[ifcopenshell.entity_instance, None, None]:
|
||||
def __iter__(self) -> Generator[ifcopenshell.entity_instance]:
|
||||
return iter(self[id] for id in self.entity_names())
|
||||
|
||||
def assign_header_from(self, other: ifcopenshell.file) -> None:
|
||||
|
||||
Reference in New Issue
Block a user