fix(types/router.py): fix arbitrary_types_allowed flag

This commit is contained in:
Krrish Dholakia 2024-05-14 16:53:02 -07:00
parent e5a1050e8d
commit b984fba73f

View file

@ -25,7 +25,7 @@ def get_model_config(arbitrary_types_allowed: bool = False) -> ConfigDict:
else:
from pydantic import Extra
model_config = ConfigDict(extra=Extra.allow) # type: ignore
model_config = ConfigDict(extra=Extra.allow, arbitrary_types_allowed=arbitrary_types_allowed) # type: ignore
return model_config