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
Hy
I am using filter package fastapi-filter and when I try to migrate pydantic v1 to v2 using bump_pydantic it doesnot auto transformed.
here, the code
filters.py
from fastapi_filter.contrib.sqlalchemy import Filter
class CommentFilter(Filter):
content_id: Optional[UUID]
creator_id: Optional[UUID]
class Constants(Filter.Constants):
model = Content
when i run
python -m bum p_pydantic filters.py
It not transformed to
class CommentFilter(Filter):
content_id: Optional[UUID] = None
creator_id: Optional[UUID] = None
class Constants(Filter.Constants):
model = Content
```
The text was updated successfully, but these errors were encountered:
BhuwanPandey
changed the title
Auto not transformed
Not Transformed automatically for other parent class except BaseModel
May 15, 2024
Hy
I am using filter package fastapi-filter and when I try to migrate pydantic v1 to v2 using bump_pydantic it doesnot auto transformed.
here, the code
filters.py
when i run
python -m bum p_pydantic filters.py
It not transformed to
The text was updated successfully, but these errors were encountered: