Skip to content

Commit

Permalink
Deactivate 'too complex' warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aleju committed Nov 23, 2019
1 parent ef42254 commit 9045a5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imgaug/augmenters/contrast.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,8 @@ def _autocontrast_pil(image, cutoff, ignore):

# This function is only faster than the corresponding PIL function if no
# cutoff is used.
def _autocontrast(image, cutoff, ignore):
# C901 is "<functionname> is too complex"
def _autocontrast(image, cutoff, ignore): # noqa: C901
if ignore is not None and not ia.is_iterable(ignore):
ignore = [ignore]

Expand Down

0 comments on commit 9045a5d

Please sign in to comment.