Commit 0f383f37 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

fix type annotations in system orch

parent c1e66968
......@@ -28,14 +28,14 @@ from simbricks.orchestration.experiment import experiment_environment as expenv
class Application(abc.ABC):
def __init__(self, h: host.Host) -> None:
def __init__(self, h: base.Host) -> None:
self.host = h
# Note AK: Maybe we can factor most of the duplicate calls with the host out
# into a separate module.
class LinuxApplication(abc.ABC):
def __init__(self, h: host.LinuxHost) -> None:
def __init__(self, h: base.LinuxHost) -> None:
self.host = h
def run_cmds(self, env: expenv.ExpEnv) -> list[str]:
......
......@@ -58,5 +58,5 @@ class PCIeSimpleDevice(base.Component):
super().__init__(s)
self.pci_if = PCIeDeviceInterface()
def interfaces(self) -> tp.List[base.Interface]:
def interfaces(self) -> list[base.Interface]:
return [self.pci_if]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment