From 669ee330b04a7835cb15f8c65498f77335ea00c1 Mon Sep 17 00:00:00 2001 From: PJCampi Date: Fri, 10 May 2024 12:37:43 +0200 Subject: [PATCH] fix: comment from review (#528) --- dataclasses_json/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dataclasses_json/core.py b/dataclasses_json/core.py index 1035e927..9b621dfb 100644 --- a/dataclasses_json/core.py +++ b/dataclasses_json/core.py @@ -231,10 +231,10 @@ 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_): - return _decode_dataclass(type_, value, infer_missing) if _is_supported_generic(type_): return _decode_generic(type_, value, infer_missing) + if is_dataclass(type_) or is_dataclass(value): + return _decode_dataclass(type_, value, infer_missing) return _support_extended_types(type_, value)