-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prep for 2.7 beta release 🚀 (#9158)
Co-authored-by: Samuel Colvin <s@muelcolvin.com>
- Loading branch information
1 parent
d77a940
commit d294244
Showing
4 changed files
with
249 additions
and
2 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
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,116 @@ | ||
# NOTE This file aliases the pydantic namespace as pydantic.v1 for smoother v1 -> v2 transition | ||
# flake8: noqa | ||
from pydantic import * | ||
|
||
# WARNING __all__ from .errors is not included here, it will be removed as an export here in v2 | ||
# please use "from pydantic.errors import ..." instead | ||
__all__ = [ | ||
# annotated types utils | ||
"create_model_from_namedtuple", | ||
"create_model_from_typeddict", | ||
# dataclasses | ||
"dataclasses", | ||
# class_validators | ||
"root_validator", | ||
"validator", | ||
# config | ||
"BaseConfig", | ||
"ConfigDict", | ||
"Extra", | ||
# decorator | ||
"validate_arguments", | ||
# env_settings | ||
"BaseSettings", | ||
# error_wrappers | ||
"ValidationError", | ||
# fields | ||
"Field", | ||
"Required", | ||
# main | ||
"BaseModel", | ||
"create_model", | ||
"validate_model", | ||
# network | ||
"AnyUrl", | ||
"AnyHttpUrl", | ||
"FileUrl", | ||
"HttpUrl", | ||
"stricturl", | ||
"EmailStr", | ||
"NameEmail", | ||
"IPvAnyAddress", | ||
"IPvAnyInterface", | ||
"IPvAnyNetwork", | ||
"PostgresDsn", | ||
"CockroachDsn", | ||
"AmqpDsn", | ||
"RedisDsn", | ||
"MongoDsn", | ||
"KafkaDsn", | ||
"validate_email", | ||
# parse | ||
"Protocol", | ||
# tools | ||
"parse_file_as", | ||
"parse_obj_as", | ||
"parse_raw_as", | ||
"schema_of", | ||
"schema_json_of", | ||
# types | ||
"NoneStr", | ||
"NoneBytes", | ||
"StrBytes", | ||
"NoneStrBytes", | ||
"StrictStr", | ||
"ConstrainedBytes", | ||
"conbytes", | ||
"ConstrainedList", | ||
"conlist", | ||
"ConstrainedSet", | ||
"conset", | ||
"ConstrainedFrozenSet", | ||
"confrozenset", | ||
"ConstrainedStr", | ||
"constr", | ||
"PyObject", | ||
"ConstrainedInt", | ||
"conint", | ||
"PositiveInt", | ||
"NegativeInt", | ||
"NonNegativeInt", | ||
"NonPositiveInt", | ||
"ConstrainedFloat", | ||
"confloat", | ||
"PositiveFloat", | ||
"NegativeFloat", | ||
"NonNegativeFloat", | ||
"NonPositiveFloat", | ||
"FiniteFloat", | ||
"ConstrainedDecimal", | ||
"condecimal", | ||
"ConstrainedDate", | ||
"condate", | ||
"UUID1", | ||
"UUID3", | ||
"UUID4", | ||
"UUID5", | ||
"FilePath", | ||
"DirectoryPath", | ||
"Json", | ||
"JsonWrapper", | ||
"SecretField", | ||
"SecretStr", | ||
"SecretBytes", | ||
"StrictBool", | ||
"StrictBytes", | ||
"StrictInt", | ||
"StrictFloat", | ||
"PaymentCardNumber", | ||
"PrivateAttr", | ||
"ByteSize", | ||
"PastDate", | ||
"FutureDate", | ||
# version | ||
"compiled", | ||
"VERSION", | ||
] |
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