Skip to content

Commit ee820aa

Browse files
authored
Merge comparisons into fmt in (...) call (#229)
Pleasing the pylint gods.
1 parent 1b1ce39 commit ee820aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gmt/helpers/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def new_module(*args, **kwargs):
284284
for arg, fmt in conversions.items():
285285
if arg in kwargs:
286286
value = kwargs[arg]
287-
issequence = fmt == "sequence" or fmt == "sequence_comma"
287+
issequence = fmt in ("sequence", "sequence_comma")
288288
if issequence and is_nonstr_iter(value):
289289
kwargs[arg] = separators[fmt].join(
290290
"{}".format(item) for item in value

0 commit comments

Comments
 (0)