Skip to content

Commit

Permalink
Merge isinstance calls (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Jul 13, 2021
1 parent f16340e commit 4bd5ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yapf/__init__.py
Expand Up @@ -148,7 +148,7 @@ def _PrintHelp(args):
for line in docstring.splitlines():
print('#', line and ' ' or '', line, sep='')
option_value = style.Get(option)
if isinstance(option_value, set) or isinstance(option_value, list):
if isinstance(option_value, (set, list)):
option_value = ', '.join(map(str, option_value))
print(option.lower(), '=', option_value, sep='')
print()
Expand Down

0 comments on commit 4bd5ccd

Please sign in to comment.