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
|
||
---|---|---|
.. | ||
browser | ||
commands | ||
completion | ||
config | ||
javascript | ||
keyinput | ||
mainwindow | ||
misc | ||
scripts | ||
utils | ||
test_app.py |