Skip to content

Commit 1571fd3

Browse files
committed
✏️ Fix typo on the BP number for parse_obj_as
1 parent 74f9be5 commit 1571fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Bump Pydantic is a tool to help you migrate your code from Pydantic V1 to V2.
2828
- [BP005: Replace `GenericModel` by `BaseModel`](#bp005-replace-genericmodel-by-basemodel)
2929
- [BP006: Replace `__root__` by `RootModel`](#bp006-replace-__root__-by-rootmodel)
3030
- [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)
3232
- [License](#license)
3333

3434
---
@@ -284,7 +284,7 @@ class User(BaseModel):
284284
return values
285285
```
286286

287-
### BP009: Replace `pydantic.parse_obj_as` by `pydantic.TypeAdapter`
287+
### BP008: Replace `pydantic.parse_obj_as` by `pydantic.TypeAdapter`
288288

289289
- ✅ Replace `pydantic.parse_obj_as(T, obj)` to `pydantic.TypeAdapter(T).validate_python(obj)`.
290290

0 commit comments

Comments
 (0)