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

Add json.scanner.NUMBER_RE #13405

Merged
merged 2 commits into from
Jan 18, 2025
Merged

Conversation

tjkuson
Copy link
Contributor

@tjkuson tjkuson commented Jan 18, 2025

It's a module attribute that isn't currently defined.

@tjkuson tjkuson changed the title Add json.scanner.NUMBER_RE Add json.scanner.NUMBER_RE Jan 18, 2025

This comment has been minimized.


__all__ = ["make_scanner"]

NUMBER_RE: Final[Pattern[str]]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
NUMBER_RE: Final[Pattern[str]]
NUMBER_RE: Final[Pattern[str]] # undocumented

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't include that comment to match undocumented patterns in stdlib/json/encoder.pyi. Should I update those as well (be it in this PR or in a follow-up)?

Copy link
Member

Choose a reason for hiding this comment

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

Sure, it's good to mark all of these undocumented attributes. I'll merge this one now, feel free to send another PR marking undocumented things elsewhere.

Co-authored-by: Jelle Zijlstra <[email protected]>
Copy link
Contributor

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

@JelleZijlstra JelleZijlstra merged commit a9aaf49 into python:main Jan 18, 2025
55 checks passed
@tjkuson tjkuson deleted the json-scanner-number-re branch January 18, 2025 21:37
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