-
-
Notifications
You must be signed in to change notification settings - Fork 155
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.BytesIOas the first argument todf.to_csvno longer works. This is becauseio.BytesIOno longer satisfies theWriteBuffer[bytes] | WriteBuffer[str]types defined in the pandas stubs. - In
test_orc_buffer(withintest_io.py), the firstcheckstatement fails becausefile_wis 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