-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
bugSomething isn't workingSomething isn't workingruleImplementing or modifying a lint ruleImplementing or modifying a lint rule
Description
Summary
In this snippet:
class foo:
async def recv(self, *, length=65536):
loop = asyncio.get_event_loop()
def callback():
loop.remove_reader(self._fd)
loop.add_reader(self._fd, callback)It appears that ruff applies E301 blank-line-between-methods to foo.recv.callback because it is "within" a class node, but flake8 (correctly) does not apply E301 to it because it is not "immediately within" a class node and is not actually a method.
(I do weird things within methods but not outside of them.)
Version
ruff 0.12.7
mikeleppane
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingruleImplementing or modifying a lint ruleImplementing or modifying a lint rule