]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/mgr/dashboard: Fix type annotation error.
authorSebastian Wagner <sebastian.wagner@suse.com>
Fri, 23 Nov 2018 13:45:34 +0000 (14:45 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 27 Nov 2018 10:45:22 +0000 (11:45 +0100)
Also removed unused import

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
qa/tasks/mgr/dashboard/helper.py

index 04e6ea7b391aaca38dd728d2ea9cef807cd7898b..656fcec346c5c9372593dc2ad19302f4d6b19162 100644 (file)
@@ -8,7 +8,6 @@ try:
     from collections.abc import namedtuple
 except ImportError:
     from collections import namedtuple
-import threading
 import time
 
 import requests
@@ -409,7 +408,7 @@ JTuple = namedtuple('JList', ['elem_typs'])
 class JObj(namedtuple('JObj', ['sub_elems', 'allow_unknown', 'none'])):
     def __new__(cls, sub_elems, allow_unknown=False, none=False):
         """
-        :type sub_elems: dict[str, JAny | JLeaf | JList | JObj]
+        :type sub_elems: dict[str, JAny | JLeaf | JList | JObj | type]
         :type allow_unknown: bool
         :return:
         """