We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PTH123
Path.open()
fp = open(2)
$ ruff --version ruff 0.5.7 $ ruff check --isolated --select PTH123 t.py t.py:1:6: PTH123 `open()` should be replaced by `Path.open()` | 1 | fp = open(2) | ^^^^ PTH123 | Found 1 error.
Path.open() doesn't seem to have a variant which supports a file descriptor.
This is essentially similar to #7620
The text was updated successfully, but these errors were encountered:
Makes sense. Thanks
Sorry, something went wrong.
No branches or pull requests
Path.open()
doesn't seem to have a variant which supports a file descriptor.This is essentially similar to #7620
The text was updated successfully, but these errors were encountered: