Skip to content

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

@dhermes

Description

@dhermes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions