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
error: Argument 1 to "BufferedRWPair" has incompatible type "BufferedReader"; expected "RawIOBase" [arg-type]
error: Argument 2 to "BufferedRWPair" has incompatible type "BufferedWriter"; expected "RawIOBase" [arg-type]
Your Environment
Mypy version used: 1.15.0
Mypy command-line flags:
Mypy configuration options from mypy.ini (and other config files):
[tool.mypy]
strict = true
Python version used: 3.13
The text was updated successfully, but these errors were encountered:
Bug Report
It is typical to initialize an
io.BufferedRWPair
with the returns ofPath.open()
(in binary mode) as the arguments, and this works as expected.To Reproduce
https://mypy-play.net/?mypy=latest&python=3.13&gist=79ee15dce5f93b8aa66a2a04c7bedcdc
Expected Behavior
Type checking should pass.
Actual Behavior
The type checking fails with:
Your Environment
mypy.ini
(and other config files):The text was updated successfully, but these errors were encountered: