mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Use the correct class for params when used in names. Fixes #1006
This commit is contained in:
@@ -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