Closed
Description
Just a heads up that tomorrow's release of pyright 1.1.314 will include the latest typeshed changes. The most significant of these changes are prompted by PEP 688. These changes break a couple of tests in pandas-stubs. You should see the same behaviors with mypy once it ships the next release with an updated typeshed.
The errors are as follows:
- In
test_types_to_csv
(withintest_frame.py
), passing an instance ofio.BytesIO
as the first argument todf.to_csv
no longer works. This is becauseio.BytesIO
no longer satisfies theWriteBuffer[bytes] | WriteBuffer[str]
types defined in the pandas stubs. - In
test_orc_buffer
(withintest_io.py
), the firstcheck
statement fails becausefile_w
is an instance ofio.BufferedWriter
, and this is no longer compatible with theWriteBuffer[bytes]
type defined in the pandas stubs.
@JelleZijlstra, for your visibility. I'm guessing that these showed up in the mypy_primer output when the typeshed changes went in?
Metadata
Metadata
Assignees
Labels
No labels