Skip to content
Snippets Groups Projects
Commit 0e063cad authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Fix for py3 more strict type checking

parent 6a6bd5b5
No related branches found
No related tags found
1 merge request!2CI/CD
......@@ -151,7 +151,7 @@ class TypedDict(collections.MutableMapping):
for key, tdef in self.typedef.items():
if tdef.get("required", False) and not key in self.data:
missing = missing + ((key,),)
elif recursive and issubclass(tdef["type"], TypedDict):
elif recursive and isinstance(tdef["type"], type) and issubclass(tdef["type"], TypedDict):
try:
self.data[key].checkRequired(recursive)
except KeysRequired as e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment