mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 08:58:38 +00:00
black: Format incorrectly formated files (#7194)
This commit is contained in:
committed by
GitHub
parent
066326ab3b
commit
ab0a602f9f
+1
-1
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user