anakin-language-server
anakin-language-server copied to clipboard
The member variables of a class instance should map to an LSP Field (or Property)
class Foo:
def __init__(self):
self.x = 1
self.y = 2
f = Foo()
f.|
Currently, this will report the members x
and y
as variables, but they should be reported as fields (or properties). If they were reported as field, we can distinguish "regular" class members from "fancy" @property
class members (see #15).
@davidhalter What do you say about this one? Is Jedi interested in returning something like class_variable
as the type of the x
and y
instead of statement
? Thanks in advance.
I don't see the difference and won't make that change. You will have to do that yourself. I think splitting up the types too much is not a good idea.