Skip to content

Commit 1387022

Browse files
Fixed PEP8 violation: Should not assign to a lambda.
1 parent 0386d56 commit 1387022

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bashplotlib/utils/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
import sys
99

10-
isiterable = lambda x: hasattr(x, '__iter__') or hasattr(x, '__getitem__')
10+
def isiterable(x):
11+
return hasattr(x, '__iter__') or hasattr(x, '__getitem__')
1112

1213
bcolours = {
1314
"white": '\033[97m',

0 commit comments

Comments
 (0)