Skip to content

Intellisense doesn't respect __all__ when using import * #494

@letmaik

Description

@letmaik

Environment data

VS Code version: 1.19.1
Python Extension version: 0.9.1
Python Version: 3.6.0
OS and version: Win 10

Actual behavior

# A.py
import B
B. # intellisense shows foo and bar, but accessing bar would FAIL at runtime

# B.py
from C import *

# C.py
__all__ = ['foo']
foo = 42
bar = 24

Expected behavior

With the code above intellisense should only show foo.

Metadata

Metadata

Assignees

No one assigned

    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