Skip to content

Make internal Peekable more robust or switch to more-itertools #1326

@shsms

Description

@shsms

The internal peekable implementation doesn't support having None as a valid value (for example Peekable[int | None] will not work). We could fix it, but there is also an implementation in more-itertools which seems popular and well maintained, so we could just switch to using that one.

Originally posted by @llucax in #1295 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions