2.0 is on the way
diff --git a/wally/meta_info.py b/wally/meta_info.py
index e0e2b30..7dc3901 100644
--- a/wally/meta_info.py
+++ b/wally/meta_info.py
@@ -1,4 +1,4 @@
-from typing import Any, Dict, Union, List
+from typing import Any, Dict, List
from .fuel_rest_api import KeystoneAuth, FuelInfo
@@ -21,13 +21,13 @@
return lab_data
-def collect_lab_data(url: str, cred: Dict[str, str]) -> Dict[str, Union[List[Dict[str, str]], str]]:
+def collect_lab_data(url: str, cred: Dict[str, str]) -> Dict[str, Any]:
finfo = FuelInfo(KeystoneAuth(url, cred))
nodes = [] # type: List[Dict[str, str]]
- result = {}
+ result = {} # type: Dict[str, Any]
- for node in finfo.get_nodes():
+ for node in finfo.get_nodes(): # type: ignore
node_info = {
'name': node['name'],
'processors': [],
@@ -51,4 +51,5 @@
result['nodes'] = nodes
result['fuel_version'] = finfo.get_version()
result['total_info'] = total_lab_info(nodes)
+
return result