add casts for pandas type stub incompatibilities#517
Conversation
|
Regarding The Since that's a wider change, let's keep this PR focused on the cast workaround and track the refactor separately: #521. |
|
I agree with your suggestion. Will apply your idea in another PR. |
| assert file.seekable(), f'{file} is not seekable.' | ||
| file.seek(0) | ||
| return pd.read_pickle(file) | ||
| return pd.read_pickle(cast(Any, file)) |
There was a problem hiding this comment.
ah, how about casting to ReadPickleBuffer of pandas because some method of pandas protocol seems to be too much?
There was a problem hiding this comment.
agreed, will apply in another PR.
SSIA