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

Update gettext translations #7636

Merged
merged 3 commits into from
Apr 16, 2022
Merged

Update gettext translations #7636

merged 3 commits into from
Apr 16, 2022

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Apr 16, 2022

  • Use a protocol instead of IO for fp argument.
  • Annotate a few missing return types.
  • Mark some class constants as final.

Fixes: #7628

* Use a protocol instead of `IO` for `fp` argument.
* Annotate a few missing return types.
* Mark some class constants as final.

Fixes: python#7628
Comment on lines +71 to +74
class _TranslationsReader(Protocol):
def read(self) -> bytes: ...
# optional:
# name: str
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't use SupportsRead deliberately:

@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. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit 182fa63 into python:master Apr 16, 2022
@srittau srittau deleted the gettext branch April 16, 2022 14:07
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.

gettext.GNUTranslations.__init__’s argument has an incorrect type
2 participants