Skip to content
Snippets Groups Projects
Commit fc4b930f authored by Timo Koch's avatar Timo Koch
Browse files

[python][clenaup] Iterate dict directly

parent 8193066b
No related branches found
No related tags found
1 merge request!2834[python][cleanup] Use fstring in properties for better readability
...@@ -173,7 +173,7 @@ class TypeTag: ...@@ -173,7 +173,7 @@ class TypeTag:
self.gridGeometry = gridGeometry self.gridGeometry = gridGeometry
self.name = name self.name = name
if self.name in _typeTags.keys(): if self.name in _typeTags:
if inheritsFrom is not None: if inheritsFrom is not None:
raise ValueError( raise ValueError(
f"Existing TypeTag {name} cannot inherit from other TypeTags." f"Existing TypeTag {name} cannot inherit from other TypeTags."
......
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