Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
0f383f37
Commit
0f383f37
authored
Aug 24, 2024
by
Antoine Kaufmann
Browse files
fix type annotations in system orch
parent
c1e66968
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
experiments/simbricks/orchestration/system/host/app.py
experiments/simbricks/orchestration/system/host/app.py
+2
-2
experiments/simbricks/orchestration/system/pcie.py
experiments/simbricks/orchestration/system/pcie.py
+1
-1
No files found.
experiments/simbricks/orchestration/system/host/app.py
View file @
0f383f37
...
...
@@ -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
]:
...
...
experiments/simbricks/orchestration/system/pcie.py
View file @
0f383f37
...
...
@@ -58,5 +58,5 @@ class PCIeSimpleDevice(base.Component):
super
().
__init__
(
s
)
self
.
pci_if
=
PCIeDeviceInterface
()
def
interfaces
(
self
)
->
tp
.
L
ist
[
base
.
Interface
]:
def
interfaces
(
self
)
->
l
ist
[
base
.
Interface
]:
return
[
self
.
pci_if
]
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment