Skip to content

from .x import y causes "Name already defined" for x #3735

@douglas-treadwell

Description

@douglas-treadwell

I believe this is different than #2135.

In this case, if I have a star import like...

#a.py
import * from b
import * from c

#b.py
from .x import y

#c.py
from .x import z

I get a "Name 'x' is already defined" error.

But the name x is not exported by b or c.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions