pydantic 2.2.0__tar.gz → 2.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pydantic-2.2.0 → pydantic-2.2.1}/PKG-INFO +2 -2
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_core_utils.py +6 -2
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/errors.py +1 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/root_model.py +9 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/version.py +1 -1
- {pydantic-2.2.0 → pydantic-2.2.1}/pyproject.toml +1 -1
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_root_model.py +0 -1
- {pydantic-2.2.0 → pydantic-2.2.1}/.gitignore +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/HISTORY.md +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/LICENSE +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/Makefile +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/README.md +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/__init__.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/__init__.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_annotated_handlers.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_config.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_core_metadata.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_dataclasses.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_decorators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_decorators_v1.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_discriminated_union.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_fields.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_forward_ref.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_generate_schema.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_generics.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_internal_dataclass.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_known_annotated_metadata.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_mock_validator.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_model_construction.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_repr.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_schema_generation_shared.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_std_types_schema.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_typing_extra.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_utils.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_validate_call.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_migration.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/alias_generators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/class_validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/color.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/config.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/dataclasses.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/datetime_parse.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/decorator.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/__init__.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/class_validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/config.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/copy_internals.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/decorator.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/json.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/parse.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/tools.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/env_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/error_wrappers.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/fields.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/functional_serializers.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/functional_validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/generics.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/json.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/json_schema.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/main.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/mypy.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/networks.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/parse.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/py.typed +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/schema.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/tools.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/type_adapter.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/types.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/typing.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/utils.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/__init__.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/_hypothesis_plugin.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/annotated_types.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/class_validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/color.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/config.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/dataclasses.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/datetime_parse.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/decorator.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/env_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/error_wrappers.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/errors.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/fields.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/generics.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/json.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/main.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/mypy.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/networks.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/parse.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/py.typed +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/schema.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/tools.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/types.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/typing.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/utils.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/version.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/validate_call.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/warnings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/__init__.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/__init__.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/generate_north_star_data.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/test_fastapi_startup.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/test_north_star.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/conftest.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/__init__.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-default.ini +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin-strict-no-any.ini +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin-strict.ini +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin-very-strict.ini +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin.ini +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-default.toml +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-plugin-bad-param.toml +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-plugin-strict.toml +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-plugin.toml +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/computed_fields.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/custom_constructor.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/dataclass_no_any.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail1.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail2.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail3.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail4.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail_defaults.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/generics.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/metaclass_args.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_default_factory.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail1.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail2.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail3.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail4.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/metaclass_args.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict-no-any_ini/dataclass_no_any.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/fail_defaults.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_default_factory.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-very-strict_ini/metaclass_args.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/custom_constructor.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/generics.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/computed_fields.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail1.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail2.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail3.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail4.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/fail_defaults.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/fail1.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/fail2.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/metaclass_args.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/pyproject-default_toml/fail1.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/pyproject-default_toml/fail2.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/pyproject-default_toml/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-default_ini/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-default_ini/plugin_success_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin-strict_ini/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin-strict_ini/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin_ini/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin_ini/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin-strict_toml/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin-strict_toml/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin_toml/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin_toml/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-default_ini/fail4.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-default_ini/plugin_success.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin-strict_ini/plugin_default_factory.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin-strict_ini/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin-strict_ini/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin_ini/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin_ini/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin_ini/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-default_toml/fail4.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin-strict_toml/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin-strict_toml/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin_toml/plugin_fail.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin_toml/plugin_fail_baseConfig.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin_toml/pydantic_settings.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/test_mypy.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/pyright/pyproject.toml +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/pyright/pyright_example.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_abc.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_aliases.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_annotated.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_assert_in_validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_callable.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_color.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_computed_fields.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_config.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_construction.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_create_model.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_dataclasses.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_datetime.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_decorators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_deprecated.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_deprecated_validate_arguments.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_discriminated_union.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_docs.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_edge_cases.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_errors.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_exports.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_fastapi.sh +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_fastapi_json_schema.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_fields.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_forward_ref.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_generics.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_internal.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_json.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_json_schema.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_main.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_migration.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_model_signature.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_model_validator.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_networks.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_networks_ipaddress.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_parse.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_prepare_annotations.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_private_attributes.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_pydantic_extra_types.sh +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_pydantic_settings.sh +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_rich_repr.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_serialize.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_strict.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_structural_pattern_matching.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_tools.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_type_adapter.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_type_alias_type.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types_namedtuple.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types_payment_card_number.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types_typeddict.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_typing.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_utils.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_v1.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_validate_call.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_validators.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_validators_dataclass.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_version.py +0 -0
- {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_warnings.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pydantic
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.1
|
|
4
4
|
Summary: Data validation using Python type hints
|
|
5
5
|
Project-URL: Homepage, https://github.com/pydantic/pydantic
|
|
6
6
|
Project-URL: Documentation, https://docs.pydantic.dev
|
|
@@ -35,7 +35,7 @@ Classifier: Topic :: Internet
|
|
|
35
35
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
36
36
|
Requires-Python: >=3.7
|
|
37
37
|
Requires-Dist: annotated-types>=0.4.0
|
|
38
|
-
Requires-Dist: pydantic-core==2.6.
|
|
38
|
+
Requires-Dist: pydantic-core==2.6.1
|
|
39
39
|
Requires-Dist: typing-extensions>=4.6.1
|
|
40
40
|
Provides-Extra: email
|
|
41
41
|
Requires-Dist: email-validator>=2.0.0; extra == 'email'
|
|
@@ -467,8 +467,12 @@ def _simplify_schema_references(schema: core_schema.CoreSchema, inline: bool) ->
|
|
|
467
467
|
return recurse(s, count_refs)
|
|
468
468
|
ref = s['schema_ref']
|
|
469
469
|
ref_counts[ref] += 1
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
|
|
471
|
+
if ref_counts[ref] >= 2:
|
|
472
|
+
# If this model is involved in a recursion this should be detected
|
|
473
|
+
# on its second encounter, we can safely stop the walk here.
|
|
474
|
+
if current_recursion_ref_count[ref] != 0:
|
|
475
|
+
involved_in_recursion[ref] = True
|
|
472
476
|
return s
|
|
473
477
|
|
|
474
478
|
current_recursion_ref_count[ref] += 1
|
|
@@ -7,6 +7,7 @@ from copy import copy, deepcopy
|
|
|
7
7
|
|
|
8
8
|
from pydantic_core import PydanticUndefined
|
|
9
9
|
|
|
10
|
+
from . import PydanticUserError
|
|
10
11
|
from ._internal import _repr
|
|
11
12
|
from .main import BaseModel, _object_setattr
|
|
12
13
|
|
|
@@ -43,6 +44,14 @@ class RootModel(BaseModel, typing.Generic[RootModelRootType]):
|
|
|
43
44
|
|
|
44
45
|
root: RootModelRootType
|
|
45
46
|
|
|
47
|
+
def __init_subclass__(cls, **kwargs):
|
|
48
|
+
extra = cls.model_config.get('extra')
|
|
49
|
+
if extra is not None:
|
|
50
|
+
raise PydanticUserError(
|
|
51
|
+
"`RootModel` does not support setting `model_config['extra']`", code='root-model-extra'
|
|
52
|
+
)
|
|
53
|
+
super().__init_subclass__(**kwargs)
|
|
54
|
+
|
|
46
55
|
def __init__(__pydantic_self__, root: RootModelRootType = PydanticUndefined, **data) -> None: # type: ignore
|
|
47
56
|
__tracebackhide__ = True
|
|
48
57
|
if data:
|
|
@@ -344,7 +344,6 @@ def test_root_model_base_model_equality():
|
|
|
344
344
|
assert B(root=42) != R(42)
|
|
345
345
|
|
|
346
346
|
|
|
347
|
-
@pytest.mark.xfail(reason='TODO: raise error for `extra` with `RootModel`')
|
|
348
347
|
@pytest.mark.parametrize('extra_value', ['ignore', 'allow', 'forbid'])
|
|
349
348
|
def test_extra_error(extra_value):
|
|
350
349
|
with pytest.raises(PydanticUserError, match='extra'):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/metaclass_args.py
RENAMED
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/plugin_success.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/pydantic_settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/fail_defaults.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_fail.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_success.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/custom_constructor.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_fail_baseConfig.py
RENAMED
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_success.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/pydantic_settings.py
RENAMED
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/computed_fields.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/success.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_fail.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_success.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/metaclass_args.py
RENAMED
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/plugin_success.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/pydantic_settings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-default_ini/plugin_success.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin-strict_ini/plugin_fail.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin_ini/plugin_fail_baseConfig.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin_toml/plugin_fail.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-default_ini/plugin_success.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin-strict_ini/plugin_fail.py
RENAMED
|
File without changes
|