Hi,
I would like to know if the following code snippet should generate an E306 error (it currently does not).
This code snippet comes from the flake8rules website, which (if my understanding is correct), is not directly associated with pycodestyle.
def outer():
def inner():
pass
Looking at the pycodestyle files, I found this test and definition below that suggests that the snippet above is not supposed to generate an error. However the official error definition E306: expected 1 blank line before a nested definition seems to say that there should be a blank line (unless the first nested def is an exception).
Hi, I would like to know if the following code snippet should generate an
E306
error (it currently does not). This code snippet comes from the flake8rules website, which (if my understanding is correct), is not directly associated with pycodestyle.Looking at the pycodestyle files, I found this test and definition below that suggests that the snippet above is not supposed to generate an error. However the official error definition E306: expected 1 blank line before a nested definition seems to say that there should be a blank line (unless the first nested def is an exception).
If the current behavior is not the desired one, I can make a PR to fix it.