Skip to content

Order of generated models for PydanticBaseModelΒ #6

@s-rigaud

Description

@s-rigaud

I recently run into an issue with generated models from the website https://stackoverflow.com/questions/74346565/fastapi-typeerror-issubclass-arg-1-must-be-a-class-with-modular-imports/75789412#75789412

Importing the __annotations__ from future was leading to some problems. Just reordering the models starting from the subclass and removing the future import could be a nice feature to implement.

image

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