We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Happy to submit a PR to fix but I think this is wrong
from io import BytesIO, TextIOWrapper from typing import Optional encoding = None # type: Optional[str] buf = BytesIO() TextIOWrapper(buf, encoding=encoding)
mypy_test.py:6: error: Argument "encoding" to "TextIOWrapper" has incompatible type "Optional[str]"; expected "str"
The text was updated successfully, but these errors were encountered:
Added Optional (#3125)
8e89faa
Fixes #3124
Added Optional (python#3125)
e56147d
Fixes python#3124
Successfully merging a pull request may close this issue.
Happy to submit a PR to fix but I think this is wrong
The text was updated successfully, but these errors were encountered: