Skip to content

Commit 8fa5327

Browse files
committed
added pylint conformity
1 parent a447ec1 commit 8fa5327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def validatemethod(value):
1010

1111
methods = list(dict.fromkeys(value.split(',')))
1212
if methods[0] == 'all':
13-
return 'get', 'post', 'delete', 'put'
13+
return ['get', 'post', 'delete', 'put']
1414
for method in methods:
1515
if method.lower() not in ['get','post','put','delete']:
1616
raise argparse.ArgumentTypeError(f"argument -m/--method: invalid choice(s): '{methods}' (choose from 'get', 'post', 'put', 'delete' or choose 'all')")

0 commit comments

Comments
 (0)