From 1155b52375fba6db42d74a00bc4f262fcfb2dc94 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 1 Jun 2025 09:23:10 +0200 Subject: [PATCH] Black --- src/ifcopenshell-python/ifcopenshell/draw.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/draw.py b/src/ifcopenshell-python/ifcopenshell/draw.py index 502c7f5abf..40c7fce7e0 100644 --- a/src/ifcopenshell-python/ifcopenshell/draw.py +++ b/src/ifcopenshell-python/ifcopenshell/draw.py @@ -447,10 +447,12 @@ def main( if i == -1: return s else: - warnings.warn('Polygons with holes are not supported') + warnings.warn("Polygons with holes are not supported") return s[0:i] - polies = [[[*map(float, s[1:].split(","))] for s in break_at_second('M', d).split(" ")[:-1]] for d in polies] + polies = [ + [[*map(float, s[1:].split(","))] for s in break_at_second("M", d).split(" ")[:-1]] for d in polies + ] def create_poly(b): p = ifcopenshell.ifcopenshell_wrapper.polygon_2()