943dc564b2
Something like:
@cmdutils.argument('foo', choices=['one', 'two'])
def func(foo):
# ...
didn't actually validate the foo argument, since the inferred type of
the argument is None, and that skipped all conversion (and thus
validation).
Fixes #1871
See #1885
This is a reworked version of
|
||
---|---|---|
.. | ||
test_argparser.py | ||
test_cmdutils.py | ||
test_runners.py | ||
test_userscripts.py |