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

Monkeypatch dataclasses so that its generated code becomes debuggable #524

Open
inducer opened this issue Jun 27, 2022 · 0 comments
Open

Comments

@inducer
Copy link
Owner

inducer commented Jun 27, 2022

The difficulty here is going to be to do this reasonably robustly, perhaps by explicitly listing Python versions for which it is OK. All that's necessary is to patch this function:

https://github.com/python/cpython/blob/d71f5adc41569c2d626552269797e0545fc9122c/Lib/dataclasses.py#L413-L436=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant