-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
Hello,
I refactored a bunch of code and thought about a rule that could be useful: detecting function defined with the async keywords not using any await inside it, example:
async def unneeded_async() -> None: # should raise the error
print("lol")
async def legit_async() -> None: # should not raise the error
await some_stuff()There's probably some use cases where the async is needed, but, imo, most of the time those async can be removed.
What do you think ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ruleImplementing or modifying a lint ruleImplementing or modifying a lint rule