staticmethod and a few other cases might not have properly returned its signatures

This commit is contained in:
Dave Halter
2019-08-12 09:37:59 +02:00
parent 972cae4859
commit 5d0d09bb7d
2 changed files with 10 additions and 3 deletions

View File

@@ -67,3 +67,8 @@ def test_param_kind_and_name(code, index, param_code, kind, Script, skip_python2
param = sig.params[index]
assert param.to_string() == param_code
assert param.kind.name == kind
def test_staticmethod(Script):
s, = Script('staticmethod(').call_signatures()
assert s.to_string() == 'staticmethod(f: Callable)'