dataclass-wizard icon indicating copy to clipboard operation
dataclass-wizard copied to clipboard

Fix self referencial dataclasses

Open rnag opened this issue 1 year ago • 0 comments

case when

class A:
  b: B

class B:
  a: A

As an example.

My theory is that cls_fromdict is generated for class A twice, because of self-reference. I need to do some tests to confirm this is the case, and if so need to do a check when storing parser for A, so we only generate and store it once, if that's possible.

rnag avatar Jan 30 '24 21:01 rnag