File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Bump Pydantic is a tool to help you migrate your code from Pydantic V1 to V2.
27
27
- [ BP005: Replace ` GenericModel ` by ` BaseModel ` ] ( #bp005-replace-genericmodel-by-basemodel )
28
28
- [ BP006: Replace ` __root__ ` by ` RootModel ` ] ( #bp006-replace-__root__-by-rootmodel )
29
29
- [ BP007: Replace decorators] ( #bp007-replace-decorators )
30
- - [ BP008: Replace ` pydantic.parse_obj_as ` by ` pydantic.TypeAdapter ` ] ( #bp008-replace-pydanticparse_obj_as-by-pydantictypeadapter )
30
+ <!-- - [BP008: Replace `pydantic.parse_obj_as` by `pydantic.TypeAdapter`](#bp008-replace-pydanticparse_obj_as-by-pydantictypeadapter) -->
31
31
- [ License] ( #license )
32
32
33
33
---
@@ -260,6 +260,7 @@ class User(BaseModel):
260
260
return values
261
261
```
262
262
263
+ <!--
263
264
### BP008: Replace `pydantic.parse_obj_as` by `pydantic.TypeAdapter`
264
265
265
266
- ✅ Replace `pydantic.parse_obj_as(T, obj)` to `pydantic.TypeAdapter(T).validate_python(obj)`.
@@ -302,6 +303,7 @@ class Users(BaseModel):
302
303
303
304
users = TypeAdapter(Users).validate_python({'users': [{'name': 'John'}]})
304
305
```
306
+ -->
305
307
306
308
---
307
309
You can’t perform that action at this time.
0 commit comments