gh-102947: Improve traceback when calling fields() on a non-dataclass#102948
gh-102947: Improve traceback when calling fields() on a non-dataclass#102948AlexWaygood merged 2 commits intopython:mainfrom
fields() on a non-dataclass#102948Conversation
|
I'm unsure whether this counts as a feature or a backportable bugfix. I'm easy either way. |
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.fieldsis called on a non-dataclass #102947