Skip to content

Commit

Permalink
test: Fix type of MachineCase.machine_class
Browse files Browse the repository at this point in the history
It's not NoneType. anaconda-webui sets a different class, and mypy
complains:

> test/anacondalib.py:38: error: Incompatible types in assignment (expression has type "type[VirtInstallMachine]", variable has type "None")  [assignment]
  • Loading branch information
martinpitt committed Jun 26, 2024
1 parent d6c6ed6 commit a4a1143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ class MachineCase(unittest.TestCase):
runner = None
machine: testvm.Machine
machines: Mapping[str, testvm.Machine]
machine_class = None
machine_class: type | None = None
browser: Browser
network = None
journal_start: str | None = None
Expand Down

0 comments on commit a4a1143

Please sign in to comment.