From fc4b930f56becaec444e710547fbabfa97716876 Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Tue, 21 Sep 2021 16:49:09 +0200 Subject: [PATCH] [python][clenaup] Iterate dict directly --- python/dumux/common/properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dumux/common/properties.py b/python/dumux/common/properties.py index 5f2fc18e84..e72dc23f05 100644 --- a/python/dumux/common/properties.py +++ b/python/dumux/common/properties.py @@ -173,7 +173,7 @@ class TypeTag: self.gridGeometry = gridGeometry self.name = name - if self.name in _typeTags.keys(): + if self.name in _typeTags: if inheritsFrom is not None: raise ValueError( f"Existing TypeTag {name} cannot inherit from other TypeTags." -- GitLab