Hi i'm a beginer in FastAPi, getting this error as
TypeError: typing.Union[pydantic.main.stats, NoneType] is not a generic class.
How shall i create sub-optional models? these are my imports.
from typing import Optional,List
from pydantic import BaseModel, create_model