Skip to content

Migrate fastparse to use ErrorMessage class #14753

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

Merged
merged 6 commits into from
Apr 24, 2023

Conversation

tusharsadhwani
Copy link
Contributor

@tusharsadhwani tusharsadhwani commented Feb 21, 2023

Use the ErrorMessage class from message_registry.py to move the error messages from fastparse module into the message registry.

This is a retry of #10947 and #12004, but much more granular this time.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@tusharsadhwani
Copy link
Contributor Author

@sobolevn Do you mind taking a look?

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Thanks fort the PR! Looks good to me. This makes error reporting more consistent.

@JukkaL JukkaL merged commit 9ce3470 into python:master Apr 24, 2023
@tusharsadhwani
Copy link
Contributor Author

tusharsadhwani commented Apr 24, 2023

@JukkaL do you mind reviewing subsequent small PRs as well? I can prepare one a day or so. Around 100 lines changed.

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

Successfully merging this pull request may close these issues.

2 participants