diff --git a/src/ifcopenshell-python/ifcopenshell/geom/main.py b/src/ifcopenshell-python/ifcopenshell/geom/main.py index fa1cbd22f2..a1f00bb137 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/main.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/main.py @@ -339,7 +339,9 @@ class iterator(ifcopenshell_wrapper.Iterator): geometry_library, self.settings, file_or_filename, include_or_exclude, include is not None, num_threads ) else: - self.this = ifcopenshell_wrapper.construct_iterator(geometry_library, self.settings, file_or_filename, num_threads) + self.this = ifcopenshell_wrapper.construct_iterator( + geometry_library, self.settings, file_or_filename, num_threads + ) if has_occ: diff --git a/src/ifcopenshell-python/test/test_create_shape.py b/src/ifcopenshell-python/test/test_create_shape.py index 46d02c5699..bc743217bf 100644 --- a/src/ifcopenshell-python/test/test_create_shape.py +++ b/src/ifcopenshell-python/test/test_create_shape.py @@ -19,6 +19,7 @@ from typing import get_args fn = os.path.join(os.path.dirname(__file__), "fixtures/ColumnPSetsOfSets.ifc") + class TestGeomSettings: def test_settings(self): settings = ifcopenshell.geom.settings() @@ -198,8 +199,8 @@ def test_iterator(): with_or_without_threads = [[], [multiprocessing.cpu_count()]] includes = [ {}, - {'include': ['IfcColumn']}, - {'include': [file_or_filename[1].by_type('IfcColumn')[0]]}, + {"include": ["IfcColumn"]}, + {"include": [file_or_filename[1].by_type("IfcColumn")[0]]}, ] for args in itertools.product(file_or_filename, with_or_without_threads, includes): kwargs = functools.reduce(operator.or_, (a for a in args if isinstance(a, dict)))