[Python] Add missing Python kwargs builtin support

Accept keyword arguments accessing C++ static member functions when
using -builtin and kwargs feature and Python class staticmethod syntax.
The missing keyword argument support was only when using the
class staticmethod syntax, not when using the flat static method
syntax.
This commit is contained in:
William S Fulton 2022-01-11 23:33:22 +00:00
commit 627f7214db
4 changed files with 13 additions and 2 deletions

View file

@ -18,6 +18,9 @@ if f.foo(b=1, a=2) != 3:
if Foo.statfoo(b=2) != 3:
raise RuntimeError
if Foo.statfoo_onearg(x=4) != 8:
raise RuntimeError
if f.efoo(b=2) != 3:
raise RuntimeError