Skip to content
Snippets Groups Projects
Commit 3443fbf8 authored by Derval Guillaume's avatar Derval Guillaume
Browse files

float() is a valid type in tree_modifier

parent d222edff
No related branches found
No related tags found
No related merge requests found
......@@ -158,7 +158,7 @@ def modify(element: T, by: dict[typing.Type[AnyGBOMLObject], typing.Callable[[An
match element:
case GBOMLObject(): return _modify_gbomlobject(element, by)
case list(): return _modify_list(element, by)
case int() | str() | None: return element
case int() | str() | float() | None: return element
case other: raise RuntimeError(f"Unknown type {other.__class__}")
......
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