diff options
Diffstat (limited to 'python/knot_resolver/utils/modeling/renaming.py')
-rw-r--r-- | python/knot_resolver/utils/modeling/renaming.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/knot_resolver/utils/modeling/renaming.py b/python/knot_resolver/utils/modeling/renaming.py index 2420ed04..fd20adf9 100644 --- a/python/knot_resolver/utils/modeling/renaming.py +++ b/python/knot_resolver/utils/modeling/renaming.py @@ -81,10 +81,9 @@ class RenamedList(List[V], Renamed): # type: ignore def renamed(obj: Any) -> Any: if isinstance(obj, dict): return RenamedDict(**obj) - elif isinstance(obj, list): + if isinstance(obj, list): return RenamedList(obj) - else: - return obj + return obj __all__ = ["renamed", "Renamed"] |