Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix self referencial dataclasses #108

Open
rnag opened this issue Jan 30, 2024 · 0 comments
Open

Fix self referencial dataclasses #108

rnag opened this issue Jan 30, 2024 · 0 comments
Labels
low-priority Low Priority self-created Opened by me!

Comments

@rnag
Copy link
Owner

rnag commented Jan 30, 2024

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 rnag added low-priority Low Priority self-created Opened by me! labels Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-priority Low Priority self-created Opened by me!
Projects
None yet
Development

No branches or pull requests

1 participant