Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

__all__ not being respected from an import * #619

Closed

Description

microsoft/vscode-python#494

# A.py
import B
B. # intellisense shows `foo` and `bar`, but should only show `foo`.

# B.py
from C import *

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

Activity

  1. jakebailey commented on Feb 15, 2019

    @jakebailey
    Member

    Works in the new language server.

    image

    We have basic __all__ support, though not for more complicated expressions (like those which combine multiple modules' __all__s into a single list).

  2. jakebailey commented on Feb 15, 2019

    @jakebailey
    Member

    An unfortunate side effect of handling this but only partially means that we may under complete in some situations (especially projects like Django which do lots of fun stuff). I've opened #620 to track improving the support.

  3. added a commit that references this issue on Mar 6, 2019
  4. jakebailey commented on Mar 6, 2019

    @jakebailey
    Member

    Repoening, the code which filters __all__ has been temporarily removed as commonly used libraries are using it in ways we can't handle yet.

  5. added a commit that references this issue on Apr 2, 2019
    7bcb4b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions