Skip to content

E306 seems to be giving many false positives in 2.3.0 #621

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
dhermes opened this issue Jan 30, 2017 · 3 comments
Closed

E306 seems to be giving many false positives in 2.3.0 #621

dhermes opened this issue Jan 30, 2017 · 3 comments

Comments

@dhermes
Copy link

dhermes commented Jan 30, 2017

e.g. (a stripped down example from google-cloud-python) in the file f.py

def _get_pb_likelihood(value):
    return 42.125


def f(cls, image):
    values = [image.adult, image.spoof, image.medical, image.violence]
    classifications = map(_get_pb_likelihood, values)
    return cls(*classifications)

which gives:

$ pycodestyle f.py
checking f.py
f.py:7:5: E306 expected 1 blank line before a nested definition, found 0
@sigmavirus24
Copy link
Member

2.3.1 was just released fixing issues with E302 and E306.

@dhermes
Copy link
Author

dhermes commented Jan 31, 2017

Thanks a lot @sigmavirus24. Sorry I didn't notice #618 and #620

@sigmavirus24
Copy link
Member

No worries.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants