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 fb0a474 commit 7aa61f6Copy full SHA for 7aa61f6
array_api_tests/test_signatures.py
@@ -206,7 +206,7 @@ def test_function_positional_args(name):
206
mod_func = getattr(_mod, name)
207
argspec = inspect.getfullargspec(stub_func)
208
func_args = argspec.args
209
- if name.startswith('__'):
+ if func_args[:1] == ['self']:
210
func_args = func_args[1:]
211
nargs = [len(func_args)]
212
if argspec.defaults:
@@ -259,7 +259,7 @@ def test_function_keyword_only_args(name):
259
260
261
args = argspec.args
262
+ if args[:1] == ['self']:
263
args = args[1:]
264
kwonlyargs = argspec.kwonlyargs
265
kwonlydefaults = argspec.kwonlydefaults or {}
0 commit comments