black: Format incorrectly formated files (#7194)

This commit is contained in:
Esteban Dugueperoux
2025-10-04 15:59:42 +02:00
committed by GitHub
parent 066326ab3b
commit ab0a602f9f
3 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ if any(f.startswith("py-") for f in flags):
PYTHON_VERSIONS = [pyv for pyv in PYTHON_VERSIONS if f"py-{''.join(pyv.split('.')[:2])}" in flags] PYTHON_VERSIONS = [pyv for pyv in PYTHON_VERSIONS if f"py-{''.join(pyv.split('.')[:2])}" in flags]
if any(f.startswith("occt-") for f in flags): if any(f.startswith("occt-") for f in flags):
OCCT_VERSION = next(f.split('-', 1)[1] for f in flags if f.startswith("occt-")) OCCT_VERSION = next(f.split("-", 1)[1] for f in flags if f.startswith("occt-"))
print(OCCT_VERSION) print(OCCT_VERSION)
+2 -3
View File
@@ -1259,7 +1259,6 @@ class Drawing(bonsai.core.tool.Drawing):
}, },
) )
# TODO below this point is highly experimental prototype code with no tests # TODO below this point is highly experimental prototype code with no tests
class SheetWarningType(NamedTuple): class SheetWarningType(NamedTuple):
@@ -1845,12 +1844,12 @@ class Drawing(bonsai.core.tool.Drawing):
text: str, text: str,
product: Optional[ifcopenshell.entity_instance] = None, product: Optional[ifcopenshell.entity_instance] = None,
reverse_list: bool = False, reverse_list: bool = False,
list_separator: str = ", " list_separator: str = ", ",
) -> str: ) -> str:
if not product: if not product:
return text return text
if list_separator: if list_separator:
list_separator = list_separator.encode().decode('unicode_escape') list_separator = list_separator.encode().decode("unicode_escape")
for command in re.findall("``.*?``", text): for command in re.findall("``.*?``", text):
original_command = command original_command = command