Skip to content

TypeError: Subscripted generics cannot be used with class and instance checks in models.py #47

Description

@irt-shpc

There is an error in Python > 3.11 where the HttpUrl annotated type construct cannot be used with isinstance. In order to keep the type as a plain str for most of the code and not a true pydanticHttpUrl we need a wrapper class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions