Skip to content
Snippets Groups Projects
Commit 2b7260cb authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

added is_subset, v2.17.20

parent be1eafb7
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ def is_subset(subset: tp.Dict, superset: tp.Dict) -> bool:
have to be equal
:return: does the condition hold?
"""
for k, v in subset:
for k, v in subset.items():
if k not in superset:
return False
if v != superset[k]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment