You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm migrating a big codebase over from pydantic v1 to v2 and my initial approach is to upgrade to V2 and then change all imports to import from pydantic.v1 and slowly migrate things over.
Kor is throwing an error for me for the from_pydantic function as it seems to look for which version of pydantic is installed and use that one accordingly. I'm wondering if there's any way to have V2 installed but make Kor use V1 instead? thanks!
Argument of type "type[SupportTicket]" cannot be assigned to parameter "model_class" of type "type[BaseModel]" in function "from_pydantic" "type[SupportTicket]" is incompatible with "type[BaseModel]"
The text was updated successfully, but these errors were encountered:
Hey! i would be happy to open a PR for this change. my first thought would be to modify the _translate_pydantic_to_kor and from_pydantic function and allow it take take in a user's argument. let me know if this is a correct approach, thanks!
Hi! I'm migrating a big codebase over from pydantic v1 to v2 and my initial approach is to upgrade to V2 and then change all imports to import from pydantic.v1 and slowly migrate things over.
Kor is throwing an error for me for the
from_pydantic
function as it seems to look for which version of pydantic is installed and use that one accordingly. I'm wondering if there's any way to have V2 installed but make Kor use V1 instead? thanks!Argument of type "type[SupportTicket]" cannot be assigned to parameter "model_class" of type "type[BaseModel]" in function "from_pydantic" "type[SupportTicket]" is incompatible with "type[BaseModel]"
The text was updated successfully, but these errors were encountered: