Fix pylint false-positive

This commit is contained in:
Florian Bruhin 2016-08-26 05:21:10 +02:00
parent 9f234d21c8
commit 553eaee467

View File

@ -427,7 +427,7 @@ class Command:
self.name))
elif issubclass(typ, typing.Union):
# this is... slightly evil, I know
types = list(typ.__union_params__)
types = list(typ.__union_params__) # pylint: disable=no-member
if param.default is not inspect.Parameter.empty:
types.append(type(param.default))
choices = self.get_arg_info(param).choices