mirror of
https://github.com/ceph/ceph
synced 2025-01-04 02:02:36 +00:00
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:
commit
55e2ee34f0
@ -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:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user