镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Closed

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

Activity

  1. sigmavirus24 commented on Jan 31, 2017

    @sigmavirus24
    Member

    2.3.1 was just released fixing issues with E302 and E306.

  2. dhermes commented on Jan 31, 2017

    @dhermes
    Author

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

  3. sigmavirus24 commented on Jan 31, 2017

    @sigmavirus24
    Member

    No worries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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