Also removed unused import
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
from collections.abc import namedtuple
except ImportError:
from collections import namedtuple
-import threading
import time
import requests
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:
"""