mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #20196: Fixed a bug where Argument Clinic did not generate correct
parsing code for functions with positional-only parameters where all arguments are optional.
This commit is contained in:
parent
a70805e1fa
commit
583baa8fef
2 changed files with 10 additions and 0 deletions
|
@ -591,6 +591,12 @@ static {impl_return_type}
|
|||
count_min = min(count_min, count)
|
||||
count_max = max(count_max, count)
|
||||
|
||||
if count == 0:
|
||||
add(""" case 0:
|
||||
break;
|
||||
""")
|
||||
continue
|
||||
|
||||
group_ids = {p.group for p in subset} # eliminate duplicates
|
||||
d = {}
|
||||
d['count'] = count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue