mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
fix-py-syntax-warning
This commit is contained in:
@@ -409,7 +409,7 @@ class file:
|
||||
def schema(self) -> Literal["IFC2X3", "IFC4", "IFC4X3"]:
|
||||
"""General IFC schema version: IFC2X3, IFC4, IFC4X3."""
|
||||
prefixes = ("IFC", "X", "_ADD", "_TC")
|
||||
reg = "".join(f"(?P<{s}>{s}\d+)?" for s in prefixes)
|
||||
reg = "".join(f"(?P<{s}>{s}\\d+)?" for s in prefixes)
|
||||
match = re.match(reg, self.wrapped_data.schema)
|
||||
version_tuple = tuple(
|
||||
map(
|
||||
|
||||
Reference in New Issue
Block a user