Skip to content

Intellisense for subclasses #626

Closed
Closed

Description

@eseaflower

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)

Activity

  1. added
    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.
    bugIssue identified by VS Code Team member as probable bug
    on Jan 26, 2018
  2. DonJayamanne commented on Feb 12, 2018

    @DonJayamanne

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

  3. MikhailArkhipov commented on Feb 15, 2018

    @MikhailArkhipov
  4. locked as resolved and limited conversation to collaborators on Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions