Merge pull request #25235 from sebastian-philipp/dashboard-fix-type-annotation-error

qa/mgr/dashboard: Fix type annotation error.

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
This commit is contained in:
Lenz Grimmer 2018-11-27 18:19:27 +01:00 committed by GitHub
commit 55e2ee34f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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:
"""