Skip to content

Commit

Permalink
fix: comment from review
Browse files Browse the repository at this point in the history
  • Loading branch information
PJCampi committed May 9, 2024
1 parent de0d230 commit 610b772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataclasses_json/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def _decode_dataclass(cls, kvs, infer_missing):
def _decode_type(type_, value, infer_missing):
if _has_decoder_in_global_config(type_):
return _get_decoder_in_global_config(type_)(value)
if is_dataclass(type_) or is_dataclass(type_):
if is_dataclass(type_) or is_dataclass(value):
return _decode_dataclass(type_, value, infer_missing)
if _is_supported_generic(type_):
return _decode_generic(type_, value, infer_missing)
Expand Down

0 comments on commit 610b772

Please sign in to comment.