-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding fields * more fields * more fields * use typing extensions * fix typing * add note on unique items * typing * more typing * add pattern * tests * move field def * docstring * move import * read * fix typing * newline
- Loading branch information
1 parent
f4b79ac
commit e3579f9
Showing
12 changed files
with
324 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,6 @@ repos: | |
rev: v1.0.1 | ||
hooks: | ||
- id: mypy | ||
files: "^src/" | ||
files: "^src/" | ||
additional_dependencies: | ||
- pydantic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import pydantic.version | ||
|
||
if not pydantic.version.VERSION.startswith("1"): # pragma: no cover | ||
raise ImportError("pydantic_compat._v1 only supports pydantic v1.x") | ||
|
||
|
||
from .decorators import field_validator as field_validator | ||
from .decorators import model_validator as model_validator | ||
from .decorators import root_validator as root_validator | ||
from .mixin import PydanticCompatMixin as PydanticCompatMixin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.