Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intellisense for subclasses #626

Closed
eseaflower opened this issue Jan 25, 2018 · 2 comments
Closed

Intellisense for subclasses #626

eseaflower opened this issue Jan 25, 2018 · 2 comments
Assignees
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@eseaflower
Copy link

Environment data

VS Code version: 1.19.2
Python Extension version: 0.9.1
Python Version: 3.5.2
OS and version: Windows 7 x64

Actual behavior

class A:
    def __init__(self, value):
        self.field = value

class B(A):
    def __init__(self, value):
        super().__init__(value)


a = A("A string")    
a.field. <- Intellisense works (type of 'field' is known)
b = B("A string")
b.field. <- Intellisense does not work (type of 'field' is not known)

Expected behavior

Expected that Intellisense would be available for B, just the same as for A. In B Intellisense recognizes that B has an (inherited) field called 'field', but the type of 'field' is not known.

Steps to reproduce:

See Actual behavior

Logs

Output from Python output panel

Output from Console window (Help->Developer Tools menu)

@MikhailArkhipov MikhailArkhipov self-assigned this Jan 26, 2018
@MikhailArkhipov MikhailArkhipov added area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. upstream-jedi bug Issue identified by VS Code Team member as probable bug labels Jan 26, 2018
@DonJayamanne
Copy link

Works in the latest version of Jedi.
Should be resolved along with #674

@MikhailArkhipov
Copy link

6015468

@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants