Skip to content

What type int must I use? #199

@tonioo

Description

@tonioo

I have a field represented by a SerializerMethodField which returns a list of string. I have tried different things to indicate the type (using the @extend_schema and a type hint) but I always receive the same warning:

Warning #0: type hint for function "get_domains" is unknown. consider using a type hint or @extend_schema_field. defaulting to string.

Any help appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfix confirmation pendingissue has been fixed and confirmation from issue reporter is pending

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions