mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-09 15:05:47 +08:00
staticmethod and a few other cases might not have properly returned its signatures
This commit is contained in:
1 parent
972cae4859
commit
5d0d09bb7d
2 files changed
+10
-3
No files matched your search
@@ -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)'
|
||||
Reference in new issue
Block a user