Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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-128894: Fix TracebackException._format_syntax_error on custom SyntaxError metadata #128946

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 17, 2025

Adding type checks solved the problem, while still producing readable errors.

@pablogsal pablogsal merged commit a16ded1 into python:main Jan 22, 2025
44 checks passed
@miss-islington-app
Copy link

Thanks @sobolevn for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 22, 2025
…tom `SyntaxError` metadata (pythonGH-128946)

(cherry picked from commit a16ded1)

Co-authored-by: sobolevn <mail@sobolevn.me>
@bedevere-app
Copy link

bedevere-app bot commented Jan 22, 2025

GH-129178 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 22, 2025
pablogsal pushed a commit that referenced this pull request Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants