Chore: remove unused var in ModelProviderFactory (#23690)

This commit is contained in:
Yongtao Huang
2025-08-11 22:04:11 +08:00
committed by GitHub
parent 332e8e68ee
commit a44ca29717
3 changed files with 1 additions and 16 deletions

View File

@@ -1,10 +0,0 @@
import pydantic
from pydantic import BaseModel
def dump_model(model: BaseModel) -> dict:
if hasattr(pydantic, "model_dump"):
# FIXME mypy error, try to fix it instead of using type: ignore
return pydantic.model_dump(model) # type: ignore
else:
return model.model_dump()