mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 13:48:03 +00:00
refactor: Update the type annotation in Migrate.py to be a literal
This commit is contained in:
committed by
Dion Moult
parent
a252b459a2
commit
fad4ea82a7
@@ -18,11 +18,18 @@
|
|||||||
|
|
||||||
import ifcopenshell
|
import ifcopenshell
|
||||||
import ifcopenshell.util.schema
|
import ifcopenshell.util.schema
|
||||||
|
import typing
|
||||||
from logging import Logger
|
from logging import Logger
|
||||||
|
|
||||||
|
|
||||||
class Patcher:
|
class Patcher:
|
||||||
def __init__(self, src: str, file: ifcopenshell.file, logger: Logger, schema: str = "IFC4"):
|
def __init__(
|
||||||
|
self,
|
||||||
|
src: str,
|
||||||
|
file: ifcopenshell.file,
|
||||||
|
logger: Logger,
|
||||||
|
schema: typing.Literal["IFC2X3", "IFC4", "IFC4X3"] = "IFC4",
|
||||||
|
):
|
||||||
"""Migrate from one IFC version to another
|
"""Migrate from one IFC version to another
|
||||||
|
|
||||||
Note that this is experimental and will try to preserve as much data as
|
Note that this is experimental and will try to preserve as much data as
|
||||||
|
|||||||
Reference in New Issue
Block a user