I\'m using pydantic in my project and defined a model with Type field.
from typing import Type, Union from pydantic import