File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -130,19 +130,6 @@ pydantic version installed (without deprecation warnings):
130
130
` pydantic_compat.validator ` then the signature must match the pydantic
131
131
(v1) ` validator ` signature.
132
132
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
-
146
133
## Notable differences
147
134
148
135
- ` BaseModel.__fields__ ` in v1 is a dict of ` {'field_name' -> ModelField} `
You can’t perform that action at this time.
0 commit comments