You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pipe modes for tarfile.open() require only a simplified file object, not the full protocol. From the documentation:
For special purposes, there is a second format for mode: 'filemode|[compression]'. tarfile.open() will return a TarFile object that processes its data as a stream of blocks. No random seeking will be done on the file. If given, fileobj may be any object that has a read() or write() method (depending on the mode) that works with bytes. [...]
But currently, adding support for those modes is not possible, since mypy can't process string literals that contain a pipe character: python/mypy#16367. This will be fixed in mypy 1.11.
The text was updated successfully, but these errors were encountered:
The pipe modes for
tarfile.open()
require only a simplified file object, not the full protocol. From the documentation:But currently, adding support for those modes is not possible, since mypy can't process string literals that contain a pipe character: python/mypy#16367. This will be fixed in mypy 1.11.
The text was updated successfully, but these errors were encountered: