Skip to content

Commit

Permalink
small but important fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DinisCruz committed Feb 13, 2025
1 parent e2cb721 commit 2066d1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osbot_utils/type_safe/steps/Type_Safe__Step__From_Json.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def deserialize_dict__using_key_value_annotations(self, _self, key, value):
expected_dict_type = get_args(key_class)[0]
if dict_key != expected_dict_type and not issubclass(dict_key,expected_dict_type):
raise TypeError(f"Expected {expected_dict_type} class for key but got instance: {dict_key}")
new__dict_key = get_args(key_class)[0]
new__dict_key = dict_key
elif issubclass(key_class, Type_Safe):
new__dict_key = self.deserialize_from_dict(key_class(), dict_key)
else:
Expand Down

0 comments on commit 2066d1e

Please sign in to comment.