python-language-server
python-language-server copied to clipboard
Autocomplete doesn't show nested object attributes
Environment data
- Language Server version: XXX
- OS and version: Ubuntu 19.10
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.6
Code Snippet / Additional lnformation
I expect the language server to pick up attributes of instance variables. Is there a way I can write my code to allow mspyls to pick up these attributes?
Here's a simple example:
from collections import namedtuple
left_right = namedtuple('left_right', ['left', 'right'])
class some_nested_class:
def __init__(self):
self.left_right = left_right(left='left', right='right')
from class_with_object import some_nested_class
s = some_nested_class()
s.left_right