Commit e8cbcaa
Allow clabe to be used in Pydantic V2 codebases (#167)
* Allow clabe to be used in Pydantic V2 codebases
clabe uses Pydantic V1 and currently can't be used in a codebase which
already uses Pydantic V2. Implement the compatibility approach described in
https://docs.pydantic.dev/latest/migration/#using-pydantic-v1-features-in-a-v1v2-environment
Pydantic is upgraded to `>=1.10.17` and imports are changed to the
`pydantic.v1` namespace. This allows clabe to be used with either
Pydantic V1 or V2. Bump version to 1.2.17.
* bump version
---------
Co-authored-by: Felipe López <flh.1989@gmail.com>1 parent cd31bec commit e8cbcaa
File tree
6 files changed
+9
-9
lines changed- clabe
- tests
6 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments