-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
gh-102947: Improve traceback when calling fields()
on a non-dataclass
#102948
Conversation
I'm unsure whether this counts as a feature or a backportable bugfix. I'm easy either way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks.
I'd vote for bug fix. |
Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Sorry, @AlexWaygood, I could not cleanly backport this to |
…ataclass (pythonGH-102948) (cherry picked from commit baf4eb0) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
GH-102951 is a backport of this pull request to the 3.11 branch. |
GH-102954 is a backport of this pull request to the 3.10 branch. |
…a non-dataclass (python#102948)
dataclasses.fields
is called on a non-dataclass #102947