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
UP015
aiofiles
With ruff==0.5.7, UP015 applies to the built-in open function:
ruff==0.5.7
open
import aiofiles with open("stub.txt", mode="r") as f: # Ruff UP015 removes this mode="r" pass async with aiofiles.open("stub.txt", mode="r") as f: # Ruff doesn't yet remove this mode="r" pass
It would be nice to apply this same logic to aiofiles.open's mode argument
aiofiles.open
mode
The text was updated successfully, but these errors were encountered:
pyupgrade
[pyupgrade] Detect aiofiles.open calls in UP015 (#13173)
828871d
## Summary Closes #12879.
charliermarsh
Successfully merging a pull request may close this issue.
With
ruff==0.5.7
, UP015 applies to the built-inopen
function:It would be nice to apply this same logic to
aiofiles.open
'smode
argumentThe text was updated successfully, but these errors were encountered: