File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+
1
3
import itertools
2
4
import git
3
5
import logging
6
8
import tempfile
7
9
8
10
from packaging import version
9
- from typing import Dict
11
+ from typing import Dict , Generator
10
12
11
13
import lib .config as global_config
12
14
15
17
from lib .common import wait_for , vm_image , is_uuid
16
18
from lib .common import setup_formatted_and_mounted_disk , teardown_formatted_and_mounted_disk
17
19
from lib .netutil import is_ipv6
20
+ from lib .host import Host
18
21
from lib .pool import Pool
19
22
from lib .sr import SR
20
23
from lib .vm import VM , vm_cache_key_from_def
@@ -149,7 +152,7 @@ def pytest_runtest_makereport(item, call):
149
152
# fixtures
150
153
151
154
@pytest .fixture (scope = 'session' )
152
- def hosts (pytestconfig ):
155
+ def hosts (pytestconfig ) -> Generator [ list [ Host ]] :
153
156
nested_list = []
154
157
155
158
def setup_host (hostname_or_ip , * , config = None ):
You can’t perform that action at this time.
0 commit comments