Skip to content

orderedset.update -> should be iterable #85

@svaningelgem

Description

@svaningelgem

Current:

    def update(self, sequence: Union[Sequence[T], Set[T]]) -> int:

Proposed:

    def update(self, sequence: Iterable[T]) -> int:

The reason is that I push in a generator, which works just fine. But the IDE complains because it's neither a Sequence, nor a Set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions