Skip to content

Use Final in pyexpat module - #12541

Merged
srittau merged 5 commits into
python:mainfrom
max-muoto:final-pyexpat
Aug 17, 2024
Merged

srittau merged 5 commits into
python:mainfrom
max-muoto:final-pyexpat

Conversation

@max-muoto

Copy link
Copy Markdown
Contributor

No description provided.

@max-muoto
max-muoto force-pushed the final-pyexpat branch 2 times, most recently from 11b3d81 to 2fd80ed Compare August 17, 2024 19:33
@max-muoto max-muoto changed the title Final pyexpat Use Final in pyexapt module Aug 17, 2024
@max-muoto
max-muoto marked this pull request as ready for review August 17, 2024 19:38
Comment thread stdlib/pyexpat/errors.pyi
XML_ERROR_UNEXPECTED_STATE: str
XML_ERROR_UNKNOWN_ENCODING: str
XML_ERROR_XML_DECL: str
XML_ERROR_ABORTED: Final[LiteralString]

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Using the actual strings might be a little annoying to maintain, so opting for literal-string.

@max-muoto max-muoto changed the title Use Final in pyexapt module Use Final in pyexpat module Aug 17, 2024
@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau
srittau merged commit fe2c401 into python:main Aug 17, 2024
max-muoto added a commit to max-muoto/typeshed that referenced this pull request Sep 8, 2024
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