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

gh-102947: Improve traceback when calling fields() on a non-dataclass #102948

Merged
merged 2 commits into from
Mar 23, 2023

Conversation

AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Mar 23, 2023

@AlexWaygood AlexWaygood added the stdlib Python modules in the Lib dir label Mar 23, 2023
@AlexWaygood
Copy link
Member Author

I'm unsure whether this counts as a feature or a backportable bugfix. I'm easy either way.

Copy link
Member

@ericvsmith ericvsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks.

@ericvsmith
Copy link
Member

I'm unsure whether this counts as a feature or a backportable bugfix. I'm easy either way.

I'd vote for bug fix.

@AlexWaygood AlexWaygood added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Mar 23, 2023
@AlexWaygood AlexWaygood merged commit baf4eb0 into python:main Mar 23, 2023
@miss-islington
Copy link
Contributor

Thanks @AlexWaygood for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@AlexWaygood AlexWaygood deleted the dataclasses-traceback branch March 23, 2023 14:18
@miss-islington
Copy link
Contributor

Sorry, @AlexWaygood, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker baf4eb083c09b323cc12b8636c28c14089b87de8 3.10

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 23, 2023
…ataclass (pythonGH-102948)

(cherry picked from commit baf4eb0)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-bot
Copy link

GH-102951 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label Mar 23, 2023
@bedevere-bot
Copy link

GH-102954 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Mar 23, 2023
AlexWaygood added a commit to AlexWaygood/cpython that referenced this pull request Mar 23, 2023
miss-islington added a commit that referenced this pull request Mar 23, 2023
…ss (GH-102948)

(cherry picked from commit baf4eb0)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
AlexWaygood added a commit that referenced this pull request Mar 23, 2023
Fidget-Spinner pushed a commit to Fidget-Spinner/cpython that referenced this pull request Mar 27, 2023
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants