🔧 chore(util.py): remove unnecessary check for "BaseModel" in _type variable

The check for "BaseModel" in the _type variable is unnecessary and can be safely removed.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-28 11:17:44 -03:00
commit 0aa8a25e3f

View file

@ -265,6 +265,9 @@ def format_dict(
_type: Union[str, type] = get_type(value)
if "BaseModel" in _type:
continue
_type = remove_optional_wrapper(_type)
_type = check_list_type(_type, value)
_type = replace_mapping_with_dict(_type)