Skip to content

Incorrect Type Hint for ModelSerializer class instance attribute #718

Closed as not planned
@JoshFerge

Description

@JoshFerge

instance is not a Sequence when used in ModelSerializer code, I believe this type hint was in error.

instance: _MT | Sequence[_MT] | None # type: ignore[assignment]

it should just be instance: _MT | None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions