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