Hint PyDev for the type of property
Brought to you by:
fabioz
From the discussion:
Is there a way to hint PyDev what is the type a variable (or property) so it can provide autocompletion?
[code]
class C(object):
def __init__(self, p):
self.p = p #@type self.p: module.AnotherClass
def m(self):
self.p. # autocompletion for AnotherClass opens
[/code]
Please, provide a simple way to hint PyDev for the type of variable. There are many cases when classes are constructed dynamically or other cases where the IDE simply has no way to guess the type. The developer, however knows the type. Allow me to make my life easier by hinting PyDev for the type using a comment or something.
Regards,
Emil