Skip to content

collections.abc.Sequence considered typing.Sequence #6036

@AstraLuma

Description

@AstraLuma
from collections.abc import Sequence

class Spam: pass

Sequence.register(Spam)

Produces this error when run through mypy:

test.py:5: error: "Type[Sequence[Any]]" has no attribute "register"

This is a regression in v0.650. This error was not produced in v0.641.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions