I have a class with @property
called prop
. If a make an instance bar
of the class and write bar.prop.
in IPython and hit Tab then code completion doesn't work.
On the other hand when I put variable var
in the class and write bar.var.
and hit Tab then code completion works.
Can I make code completion work with @property
(I would like IPython to evaluate my property, get result and use it for suggestions)?
Here's the code:
class Foo:
def foo(self):
print("foo")
class Bar:
var = Foo()
@property
def prop(self):
return Foo()
bar = Bar()
And bar.var.
with Tab works, bar.prop.
doesn't work with Tab