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.

Add tracking of imports order for from package import * #364

Open

Description

Project structure:

├─ parent
│  └─ child
│     └─ one.py
└─ app.py

app.py:

from parent.child.one import *
from parent import *
print(child.__path__)

python app.py prints

_NamespacePath(['path_to_project/package1/parent/child', 'path_to_project/package2/parent/child'])

Activity

  1. jakebailey commented on Jul 11, 2019

    @jakebailey
    Member

    Blocked on #1314 (which crashes the analysis before I can re-test it).

  2. AlexanderSher commented on Jul 12, 2019

    @AlexanderSher
    ContributorAuthor

    Issue is still valid. More cases to test when implemented:

    import parent
    from parent.child import one
    print(parent.child)
    
    from parent.child import one
    from parent import *
    print(child)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions