-
Notifications
You must be signed in to change notification settings - Fork 2k
Applying UP015 to aiofiles #12879
Copy link
Copy link
Closed
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
With ruff==0.5.7, UP015 applies to the built-in open function:
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"
passIt would be nice to apply this same logic to aiofiles.open's mode argument
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule