Skip to content

Commit d4cddec

Browse files
authored
Update README.md
1 parent d9ff739 commit d4cddec

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,19 +130,6 @@ pydantic version installed (without deprecation warnings):
130130
`pydantic_compat.validator` then the signature must match the pydantic
131131
(v1) `validator` signature.
132132

133-
## `pydantic_compat.v1` escape hatch
134-
135-
If you have v1 code that you are (gradually) updating to v2, and you find that
136-
pydantic_compat doesn't yet translate one of the v1 API names you are using,
137-
and you don't want to update your code to use the v2 name, you can fallback
138-
to importing from `pydantic_compat.v1`. This module is a copy of the
139-
`pydantic.v1` namespace that was introduced in pydantic v2:
140-
141-
- if pydantic v1 is installed, then `pydantic_compat.v1` is an alias for
142-
`pydantic`
143-
- if pydantic v2 is installed, then `pydantic_compat.v1` is an alias for
144-
`pydantic.v1`
145-
146133
## Notable differences
147134

148135
- `BaseModel.__fields__` in v1 is a dict of `{'field_name' -> ModelField}`

0 commit comments

Comments
 (0)