-
Notifications
You must be signed in to change notification settings - Fork 42
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
mypy
rejects _
from gettext.gettext.install()
#1293
Comments
For the purposes of #1282, I will propose there a switch to the GNU |
14 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a tracking ticket for the problem first identified in #1282 (comment), because it is out of scope of both the original ticket #1266 and its implementation in #1282.
There exists a triangular incompatibility among:
gettext
configuration;securedrop_client.app.configure_locale_and_language()
; andmypy
's fixed behavior with built-ins.As currently implemented, #1282 can satisfy at most two of these three requirements at any given time:
gettext.gettext.install()
+from gettext import gettext as _
from gettext import gettext as _
in other modules effectively ignores the locale configured and translation loaded bygettext.gettext.install()
insecuredrop_client.app
.gettext.gettext.install()
gettext
APIgettext.[bind]textdomain
will take$LANG
from environment; does not support fallback configuration inconfigure_locale_and_language()
.The text was updated successfully, but these errors were encountered: