Skip to content

Struct.parse isn't exhaustively typed #24

@demberto

Description

@demberto
def parse(data: bytes, **contextkw: ContextKWType) -> Container[Any]

This is the type hint you have used for it. However the docstring of this function mentions it can support a whole lot of other types (from bytes, bytearray, memoryview, array etc.). The closest type hint which comes to my mind is _typeshed.ReadableBuffer for this.

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