Skip to content

subclasses of bytes converted to bytes #3706

@samuelcolvin

Description

@samuelcolvin

See duo-labs/py_webauthn#113 (comment)

In short (I think) cython is converting subclasses of bytes to raw bytes in here:

https://github.com/samuelcolvin/pydantic/blob/9d631a3429a66f30742c1a52c94ac18ec6ba848d/pydantic/validators.py#L79

Fix should be as simple as changing the type hint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug V1Bug related to Pydantic V1.X

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions