-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TYP: fix typing errors for mypy==0.790, bump mypy version #37108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fangchenli for the PR. generally lgtm.
Hello @fangchenli! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-01-10 03:12:54 UTC |
@@ -179,7 +179,8 @@ def stringify_path( | |||
# this function with convert_file_like=True to infer the compression. | |||
return cast(FileOrBuffer[AnyStr], filepath_or_buffer) | |||
|
|||
if isinstance(filepath_or_buffer, os.PathLike): | |||
# Only @runtime_checkable protocols can be used with instance and class checks | |||
if isinstance(filepath_or_buffer, os.PathLike): # type: ignore[misc] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #37104 (comment)
# Unsupported operand types for + ("List[Optional[str]]" and "List[str]") | ||
valid = ["infer", None] + sorted( | ||
_compression_to_extension | ||
) # type: ignore[operator] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #37104 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fangchenli lgtm pending green
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we also added the whatnew dependencies on the last bump
looks ok to me, merge master just to confirm. |
Thanks @fangchenli |
np-dev failures seen on other PRs/master |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff