unused usecase fixed
This commit is contained in:
parent
b2b326fc55
commit
f7c167f120
@ -70,7 +70,7 @@ class KVJson(KVRequest):
|
|||||||
elif isinstance(key, list):
|
elif isinstance(key, list):
|
||||||
return tuple(map(cls._load_key, key))
|
return tuple(map(cls._load_key, key))
|
||||||
elif isinstance(key, dict):
|
elif isinstance(key, dict):
|
||||||
return tuple((cls._load_key(k), cls._load_key(v)) for k, v in key)
|
return tuple((cls._load_key(k), cls._load_key(v)) for k, v in key.items())
|
||||||
else:
|
else:
|
||||||
raise TypeError("unknown KVJson key type, cannot convert to hashable")
|
raise TypeError("unknown KVJson key type, cannot convert to hashable")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user