-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
topic: ioI/O related issuesI/O related issues
Description
The file argument to pickle.load is annotated as IO[bytes], but should be annotated using a Protocol instead. The stub is at https://github.com/python/typeshed/blob/master/stdlib/pickle.pyi#L28.
This caused concrete problems for two people on Gitter who were trying to pass a GzipFile.
srittau, pcm91, marcinwrochna and PeterJCLaw
Metadata
Metadata
Assignees
Labels
topic: ioI/O related issuesI/O related issues