diff --git a/dataclasses_json/core.py b/dataclasses_json/core.py index 94037d22..38d190f8 100644 --- a/dataclasses_json/core.py +++ b/dataclasses_json/core.py @@ -25,6 +25,9 @@ Json = Union[dict, list, str, int, float, bool, None] +confs = ['encoder', 'decoder', 'mm_field', 'letter_case', 'exclude'] +FieldOverride = namedtuple('FieldOverride', confs) + class _ExtendedEncoder(json.JSONEncoder): def default(self, o) -> Json: @@ -48,9 +51,6 @@ def default(self, o) -> Json: def _user_overrides_or_exts(cls): - confs = ['encoder', 'decoder', 'mm_field', 'letter_case', 'exclude'] - FieldOverride = namedtuple('FieldOverride', confs) - global_metadata = defaultdict(dict) encoders = cfg.global_config.encoders decoders = cfg.global_config.decoders