KEMBAR78
Cannot import names from six.moves.collections_abc · Issue #10381 · python/mypy · GitHub
Skip to content

Cannot import names from six.moves.collections_abc #10381

@JukkaL

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions