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
test.py:10: error: Incompatible types in assignment (expression has type "BinaryIO", variable has type "TextIO")
test.py:11: error: Argument 1 to "load" has incompatible type "TextIO"; expected "IO[bytes]"
Your Environment
Mypy version used: 0.910
Mypy command-line flags: none
Mypy configuration options from mypy.ini (and other config files): none
Python version used: 3.7.6
Operating system and version: CentOS 7.4
The text was updated successfully, but these errors were encountered:
Bug Report
mypy reports correct reading of pickle files as error.
To Reproduce
Use the following code:
Then use mypy to check the code:
mypy test.py
Expected Behavior
No error occurs.
Actual Behavior
I see the following errors:
Your Environment
mypy.ini
(and other config files): noneThe text was updated successfully, but these errors were encountered: