New GitHub issue #92445 from rhettinger:<br>

<hr>

<pre>
In the code below, it is valid to supply no arguments.

```
from argparse import ArgumentParser

p = ArgumentParser()
p.add_argument('dessert', nargs='*', choices=('cake', 'pie'))
p.parse_args([])
```

However, the following error is generated:

```
usage: tmp5.py [-h] [{cake,pie} ...]
tmp5.py: error: argument dessert: invalid choice: [] (choose from 'cake', 'pie')
```

What is happening is that the empty list is being treated a value rather than a collection of values.

</pre>

<hr>

<a href="https://github.com/python/cpython/issues/92445">View on GitHub</a>
<p>Labels: type-bug, stdlib, 3.11, easy, 3.10, 3.9, 3.12</p>
<p>Assignee: </p>