Skip to content

move re.error into re.pyi #11188

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 4 commits into from
Oct 2, 2024
Merged

move re.error into re.pyi #11188

merged 4 commits into from
Oct 2, 2024

Conversation

tungol
Copy link
Contributor

@tungol tungol commented Dec 20, 2023

implementation is in sre_constants / re._constants, but it sets it's __module__ to re

implementation is in sre_constants / re._constants, but it sets
it's __module__ to re

This comment has been minimized.

This comment has been minimized.

@tungol tungol marked this pull request as draft December 23, 2023 05:33
@tungol
Copy link
Contributor Author

tungol commented Dec 23, 2023

I'm making this a draft pending discussion in #11141

I'm inclined to think using an explicit __module__ attribute (like runtime does) is a better way to handle this discrepancy.

Copy link
Contributor

github-actions bot commented Oct 2, 2024

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

@JelleZijlstra JelleZijlstra marked this pull request as ready for review October 2, 2024 01:43
@JelleZijlstra JelleZijlstra requested a review from srittau October 2, 2024 01:43
@srittau srittau merged commit 719ddd1 into python:main Oct 2, 2024
63 checks passed
@tungol tungol deleted the re branch October 2, 2024 21:30
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.

3 participants