Skip to content

ADAPTER_CLASSES may not support appendleft #82

@VMRuiz

Description

@VMRuiz

ADAPTER_CLASSES is defined as Iterable

ADAPTER_CLASSES: Iterable[Type[AdapterInterface]] = deque(

However, in the docs it's suggested to use appendleft method which is not part of the Iterable API.
This causes errors with tools like mypy:

error: "Iterable[Type[AdapterInterface]]" has no attribute "appendleft" [attr-defined]

Either the class type should be changed to List or other classes that may support appendleft or a different way to extend ADAPTER_CLASSES should be given.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions