We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b051ae8 commit b6785c4Copy full SHA for b6785c4
Tools/clinic/libclinic/parse_args.py
@@ -34,10 +34,10 @@ def declare_parser(
34
fname = '.fname = "{name}",'
35
format_ = ''
36
37
- num_keywords = sum(
38
- 1 for p in f.parameters.values()
+ num_keywords = len([
+ p for p in f.parameters.values()
39
if not p.is_positional_only() and not (p.is_vararg() or p.is_var_keyword())
40
- )
+ ])
41
42
condition = '#if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)'
43
if limited_capi:
0 commit comments