-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
gettext.GNUTranslations.__init__
’s argument has an incorrect type
#7628
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
Comments
gettext.GNUTranslations.__init__
’s argument has an incorrect type
The problem is that |
I'd say we just type |
* Use a protocol instead of `IO` for `fp` argument. * Annotate a few missing return types. * Mark some class constants as final. Fixes: python#7628
* Use a protocol instead of `IO` for `fp` argument. * Annotate a few missing return types. * Mark some class constants as final. Fixes #7628
Uh oh!
There was an error while loading. Please reload this page.
mypy
says that this program is wrong:mypy
’s output:I believe that
fp
(gettext.GNUTranslations.__init__
’s argument) should have the typeOptional[IO[bytes]]
, notOptional[IO[str]]
.The text was updated successfully, but these errors were encountered: