-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
GzipFile not allowed for tarfile.open(fileobj=...) #5491
Labels
topic: io
I/O related issues
Comments
I think this just got fixed in #5099 |
appears not fixed: $ mypy --custom-typeshed-dir /tmp/typeshed/ t.py
t.py:7: error: Argument "fileobj" to "open" has incompatible type "GzipFile"; expected "Optional[IO[bytes]]"
Found 1 error in 1 file (checked 1 source file)
$ mypy --version
mypy 0.820+dev.675ae1afc8a5b0a9a515292c7e9d6bc2a38887be
$ git -C ../typeshed/ rev-parse HEAD
7d4ecf7f0a64cbfab59e54c8df1d5c53bcd9b9a1 |
It looks like #5170 fixed |
Merged
As discussed the PR doesn't fix this issue, which is about |
We should be able to close this out now @JelleZijlstra. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
minimal reproduction:
presumably
fileobj
should use aProtocol
of some shape ?The text was updated successfully, but these errors were encountered: