File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Bump Pydantic is a tool to help you migrate your code from Pydantic V1 to V2.
28
28
- [ BP005: Replace ` GenericModel ` by ` BaseModel ` ] ( #bp005-replace-genericmodel-by-basemodel )
29
29
- [ BP006: Replace ` __root__ ` by ` RootModel ` ] ( #bp006-replace-__root__-by-rootmodel )
30
30
- [ BP007: Replace decorators] ( #bp007-replace-decorators )
31
- - [ BP009 : Replace ` pydantic.parse_obj_as ` by ` pydantic.TypeAdapter ` ] ( #bp009 -replace-pydanticparse_obj_as-by-pydantictypeadapter )
31
+ - [ BP008 : Replace ` pydantic.parse_obj_as ` by ` pydantic.TypeAdapter ` ] ( #bp008 -replace-pydanticparse_obj_as-by-pydantictypeadapter )
32
32
- [ License] ( #license )
33
33
34
34
---
@@ -284,7 +284,7 @@ class User(BaseModel):
284
284
return values
285
285
```
286
286
287
- ### BP009 : Replace ` pydantic.parse_obj_as ` by ` pydantic.TypeAdapter `
287
+ ### BP008 : Replace ` pydantic.parse_obj_as ` by ` pydantic.TypeAdapter `
288
288
289
289
- ✅ Replace ` pydantic.parse_obj_as(T, obj) ` to ` pydantic.TypeAdapter(T).validate_python(obj) ` .
290
290
You can’t perform that action at this time.
0 commit comments