Skip to content

Commit

Permalink
Fixed compatibility between Global Meta Settings and `recursive_class…
Browse files Browse the repository at this point in the history
…es` (#142) (#146)
  • Loading branch information
rnag authored Nov 24, 2024
1 parent 6ff521c commit 0bb12ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
History
=======

0.29.3 (2024-11-24)
-------------------

**Bugfixes**

* Fixed compatibility between `Global Meta Settings`_ and :attr:`recursive_classes` (:issue:`142`).

.. _Global Meta Settings: https://dataclass-wizard.readthedocs.io/en/latest/common_use_cases/meta.html#global-meta-settings

0.29.2 (2024-11-24)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion dataclass_wizard/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def get_parser_for_annotation(cls, ann_type: Type[T],

# enable support for cyclic / self-referential dataclasses
# see https://github.com/rnag/dataclass-wizard/issues/62
if config and config.recursive_classes:
if AbstractMeta.recursive_classes or (config and config.recursive_classes):
# noinspection PyTypeChecker
return RecursionSafeParser(
base_cls, extras, base_type, hook=None
Expand Down

0 comments on commit 0bb12ef

Please sign in to comment.