From 2b7260cb35d6cab3fd493dcac467485fbd497e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Fri, 27 Aug 2021 19:58:10 +0200 Subject: [PATCH] added is_subset, v2.17.20 --- satella/coding/transforms/predicates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/satella/coding/transforms/predicates.py b/satella/coding/transforms/predicates.py index 994dbfa2..c16ea358 100644 --- a/satella/coding/transforms/predicates.py +++ b/satella/coding/transforms/predicates.py @@ -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]: -- GitLab