-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[flake8-use-pathlib] Fix PTH116 false positive when stat is passed a file descriptor
#17709
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
…sed a file descriptor or bytes string
|
|
Fixing the merge conflicts |
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. We should probably exclude bytes string from this change as discussed on the issue, Sorry about that
Alright, no problem. So, should I remove the bytes string changes from the other PTH* rules as well? |
|
I realized that the refactor that I did in #17715 will cause merge conflicts in your PRs, I'll resolve them. |
flake8-use-pathlib] Fix PTH116 false positive when stat is passed a file descriptor or bytes stringflake8-use-pathlib] Fix PTH116 false positive when stat is passed a file descriptor
That would be great, yes |
* main: Improve messages outputted by py-fuzzer (#17764) [`red-knot`] Allow subclasses of Any to be assignable to Callable types (#17717) [red-knot] Increase durability of read-only `File` fields (#17757) [red-knot] Cache source type during semanic index building (#17756) [`flake8-use-pathlib`] Fix `PTH116` false positive when `stat` is passed a file descriptor (#17709) Sync vendored typeshed stubs (#17753)
Summary
Contains the same changes to the semantic type inference as #17705.
Fixes #17693.
Test Plan
Snapshot tests.