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
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