Skip to content

Commit

Permalink
Use list instead of tuple for argparse options (#275)
Browse files Browse the repository at this point in the history
Aparently pycharm has a problem with tuples?
  • Loading branch information
unloder authored and axnsan12 committed Dec 19, 2018
1 parent c5d4e6c commit f66c8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drf_yasg/management/commands/generate_swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def add_arguments(self, parser):
)
parser.add_argument(
'-f', '--format', dest='format',
default='', choices=('json', 'yaml'),
default='', choices=['json', 'yaml'],
type=str,
help='Output format. If not given, it is guessed from the output file extension and defaults to json.'
)
Expand Down

0 comments on commit f66c8e8

Please sign in to comment.