mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
support for class and instance attributes in Ctrl-Q
This commit is contained in:
1
python/testData/quickdoc/ClassAttr.html
Normal file
1
python/testData/quickdoc/ClassAttr.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body>Class attribute <b><code>the_attr</code></b> of class <a href="psi_element://#class#"><code>C</code></a><br><code>The documentation for the attribute. </code></body></html>
|
||||
6
python/testData/quickdoc/ClassAttr.py
Normal file
6
python/testData/quickdoc/ClassAttr.py
Normal file
@@ -0,0 +1,6 @@
|
||||
class C:
|
||||
the_attr = ""
|
||||
""" The documentation for the attribute. """
|
||||
|
||||
def foo(self):
|
||||
print self.<the_ref>the_attr
|
||||
1
python/testData/quickdoc/InstanceAttr.html
Normal file
1
python/testData/quickdoc/InstanceAttr.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body>Instance attribute <b><code>foo</code></b> of class <a href="psi_element://#class#"><code>C</code></a><br><code>The docstring for the attribute foo. </code></body></html>
|
||||
7
python/testData/quickdoc/InstanceAttr.py
Normal file
7
python/testData/quickdoc/InstanceAttr.py
Normal file
@@ -0,0 +1,7 @@
|
||||
class C:
|
||||
def __init__(self):
|
||||
self.foo = "Foo"
|
||||
""" The docstring for the attribute foo. """
|
||||
|
||||
def bar(self):
|
||||
print self.<the_ref>foo
|
||||
Reference in New Issue
Block a user