mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 04:45:15 +08:00
Use the correct class for params when used in names. Fixes #1006
This commit is contained in:
1 parent
72be3e5247
commit
a85f2d1049
2 files changed
+19
-5
No files matched your search
@@ -98,6 +98,12 @@ def test_function_call_signature_in_doc(Script):
|
||||
assert "f(x, y=1, z='a')" in str(doc)
|
||||
|
||||
|
||||
def test_param_docstring():
|
||||
param = jedi.names("def test(parameter): pass")[1]
|
||||
assert param.name == 'parameter'
|
||||
assert param.docstring() == ''
|
||||
|
||||
|
||||
def test_class_call_signature(Script):
|
||||
defs = Script("""
|
||||
class Foo:
|
||||
|
||||
Reference in new issue
Block a user