Skip to content

Cannot import names from six.moves.collections_abc #10381

Description

@JukkaL

This produces an error with GitHub master and latest types-six:

# Module "six.moves.collections_abc" has no attribute "Sequence"
from six.moves.collections_abc import Sequence

The problem is with how we handle this line in stdlib/collections/abc.pyi:

from _collections_abc import __all__ as __all__

We should propagate the value of __all__ (not just existence), but it doesn't happen right now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions