Hover docstrings should discern between call and non-call
Brought to you by:
fabioz
In Java, hover tooltips discern between use of a class name and construction of a class object. For example:
public void fn() {
MyClass a;
new MyClass();
}
Hovering over the first "MyClass" shows javadoc for the class; hovering over the second one shows javadoc for the constructor.
The same should occur in PyDev. Given this code:
class Foo():
"""Foo class."""
def __init__(self, count):
"""Create a new Foo, initializing the bar counter to count."""
a = Foo
b = Foo(10)
Hovering over the Foo in "a = Foo" should show the Foo class docstring; hovering over the Foo in "b = Foo(10)" should show the Foo.__init__ docstring.