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.
Files changed (269) hide show
  1. {pydantic-2.2.0 → pydantic-2.2.1}/PKG-INFO +2 -2
  2. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_core_utils.py +6 -2
  3. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/errors.py +1 -0
  4. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/root_model.py +9 -0
  5. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/version.py +1 -1
  6. {pydantic-2.2.0 → pydantic-2.2.1}/pyproject.toml +1 -1
  7. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_root_model.py +0 -1
  8. {pydantic-2.2.0 → pydantic-2.2.1}/.gitignore +0 -0
  9. {pydantic-2.2.0 → pydantic-2.2.1}/HISTORY.md +0 -0
  10. {pydantic-2.2.0 → pydantic-2.2.1}/LICENSE +0 -0
  11. {pydantic-2.2.0 → pydantic-2.2.1}/Makefile +0 -0
  12. {pydantic-2.2.0 → pydantic-2.2.1}/README.md +0 -0
  13. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/__init__.py +0 -0
  14. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/__init__.py +0 -0
  15. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_annotated_handlers.py +0 -0
  16. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_config.py +0 -0
  17. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_core_metadata.py +0 -0
  18. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_dataclasses.py +0 -0
  19. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_decorators.py +0 -0
  20. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_decorators_v1.py +0 -0
  21. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_discriminated_union.py +0 -0
  22. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_fields.py +0 -0
  23. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_forward_ref.py +0 -0
  24. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_generate_schema.py +0 -0
  25. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_generics.py +0 -0
  26. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_internal_dataclass.py +0 -0
  27. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_known_annotated_metadata.py +0 -0
  28. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_mock_validator.py +0 -0
  29. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_model_construction.py +0 -0
  30. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_repr.py +0 -0
  31. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_schema_generation_shared.py +0 -0
  32. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_std_types_schema.py +0 -0
  33. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_typing_extra.py +0 -0
  34. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_utils.py +0 -0
  35. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_validate_call.py +0 -0
  36. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_internal/_validators.py +0 -0
  37. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/_migration.py +0 -0
  38. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/alias_generators.py +0 -0
  39. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/class_validators.py +0 -0
  40. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/color.py +0 -0
  41. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/config.py +0 -0
  42. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/dataclasses.py +0 -0
  43. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/datetime_parse.py +0 -0
  44. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/decorator.py +0 -0
  45. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/__init__.py +0 -0
  46. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/class_validators.py +0 -0
  47. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/config.py +0 -0
  48. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/copy_internals.py +0 -0
  49. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/decorator.py +0 -0
  50. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/json.py +0 -0
  51. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/parse.py +0 -0
  52. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/deprecated/tools.py +0 -0
  53. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/env_settings.py +0 -0
  54. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/error_wrappers.py +0 -0
  55. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/fields.py +0 -0
  56. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/functional_serializers.py +0 -0
  57. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/functional_validators.py +0 -0
  58. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/generics.py +0 -0
  59. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/json.py +0 -0
  60. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/json_schema.py +0 -0
  61. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/main.py +0 -0
  62. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/mypy.py +0 -0
  63. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/networks.py +0 -0
  64. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/parse.py +0 -0
  65. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/py.typed +0 -0
  66. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/schema.py +0 -0
  67. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/tools.py +0 -0
  68. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/type_adapter.py +0 -0
  69. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/types.py +0 -0
  70. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/typing.py +0 -0
  71. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/utils.py +0 -0
  72. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/__init__.py +0 -0
  73. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/_hypothesis_plugin.py +0 -0
  74. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/annotated_types.py +0 -0
  75. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/class_validators.py +0 -0
  76. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/color.py +0 -0
  77. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/config.py +0 -0
  78. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/dataclasses.py +0 -0
  79. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/datetime_parse.py +0 -0
  80. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/decorator.py +0 -0
  81. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/env_settings.py +0 -0
  82. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/error_wrappers.py +0 -0
  83. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/errors.py +0 -0
  84. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/fields.py +0 -0
  85. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/generics.py +0 -0
  86. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/json.py +0 -0
  87. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/main.py +0 -0
  88. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/mypy.py +0 -0
  89. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/networks.py +0 -0
  90. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/parse.py +0 -0
  91. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/py.typed +0 -0
  92. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/schema.py +0 -0
  93. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/tools.py +0 -0
  94. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/types.py +0 -0
  95. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/typing.py +0 -0
  96. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/utils.py +0 -0
  97. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/validators.py +0 -0
  98. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/v1/version.py +0 -0
  99. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/validate_call.py +0 -0
  100. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/validators.py +0 -0
  101. {pydantic-2.2.0 → pydantic-2.2.1}/pydantic/warnings.py +0 -0
  102. {pydantic-2.2.0 → pydantic-2.2.1}/tests/__init__.py +0 -0
  103. {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/__init__.py +0 -0
  104. {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/generate_north_star_data.py +0 -0
  105. {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/test_fastapi_startup.py +0 -0
  106. {pydantic-2.2.0 → pydantic-2.2.1}/tests/benchmarks/test_north_star.py +0 -0
  107. {pydantic-2.2.0 → pydantic-2.2.1}/tests/conftest.py +0 -0
  108. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/__init__.py +0 -0
  109. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-default.ini +0 -0
  110. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin-strict-no-any.ini +0 -0
  111. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin-strict.ini +0 -0
  112. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin-very-strict.ini +0 -0
  113. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/mypy-plugin.ini +0 -0
  114. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-default.toml +0 -0
  115. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-plugin-bad-param.toml +0 -0
  116. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-plugin-strict.toml +0 -0
  117. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/configs/pyproject-plugin.toml +0 -0
  118. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/computed_fields.py +0 -0
  119. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/custom_constructor.py +0 -0
  120. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/dataclass_no_any.py +0 -0
  121. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail1.py +0 -0
  122. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail2.py +0 -0
  123. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail3.py +0 -0
  124. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail4.py +0 -0
  125. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/fail_defaults.py +0 -0
  126. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/generics.py +0 -0
  127. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/metaclass_args.py +0 -0
  128. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_default_factory.py +0 -0
  129. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_fail.py +0 -0
  130. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_fail_baseConfig.py +0 -0
  131. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_success.py +0 -0
  132. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/plugin_success_baseConfig.py +0 -0
  133. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/pydantic_settings.py +0 -0
  134. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/modules/success.py +0 -0
  135. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail1.py +0 -0
  136. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail2.py +0 -0
  137. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail3.py +0 -0
  138. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/fail4.py +0 -0
  139. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/metaclass_args.py +0 -0
  140. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/plugin_success.py +0 -0
  141. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/plugin_success_baseConfig.py +0 -0
  142. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/pydantic_settings.py +0 -0
  143. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-default_ini/success.py +0 -0
  144. {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
  145. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/fail_defaults.py +0 -0
  146. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_default_factory.py +0 -0
  147. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_fail.py +0 -0
  148. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_fail_baseConfig.py +0 -0
  149. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_success.py +0 -0
  150. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-strict_ini/plugin_success_baseConfig.py +0 -0
  151. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin-very-strict_ini/metaclass_args.py +0 -0
  152. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/custom_constructor.py +0 -0
  153. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/generics.py +0 -0
  154. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_fail.py +0 -0
  155. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_fail_baseConfig.py +0 -0
  156. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_success.py +0 -0
  157. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/plugin_success_baseConfig.py +0 -0
  158. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/mypy-plugin_ini/pydantic_settings.py +0 -0
  159. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/computed_fields.py +0 -0
  160. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail1.py +0 -0
  161. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail2.py +0 -0
  162. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail3.py +0 -0
  163. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/fail4.py +0 -0
  164. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/pydantic_settings.py +0 -0
  165. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-default_toml/success.py +0 -0
  166. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/fail_defaults.py +0 -0
  167. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_fail.py +0 -0
  168. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_fail_baseConfig.py +0 -0
  169. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_success.py +0 -0
  170. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin-strict_toml/plugin_success_baseConfig.py +0 -0
  171. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_fail.py +0 -0
  172. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_fail_baseConfig.py +0 -0
  173. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_success.py +0 -0
  174. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/plugin_success_baseConfig.py +0 -0
  175. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.0.1/pyproject-plugin_toml/pydantic_settings.py +0 -0
  176. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/fail1.py +0 -0
  177. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/fail2.py +0 -0
  178. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/metaclass_args.py +0 -0
  179. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/plugin_success.py +0 -0
  180. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/plugin_success_baseConfig.py +0 -0
  181. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/mypy-default_ini/pydantic_settings.py +0 -0
  182. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/pyproject-default_toml/fail1.py +0 -0
  183. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/pyproject-default_toml/fail2.py +0 -0
  184. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.1.1/pyproject-default_toml/pydantic_settings.py +0 -0
  185. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-default_ini/plugin_success.py +0 -0
  186. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-default_ini/plugin_success_baseConfig.py +0 -0
  187. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin-strict_ini/plugin_fail.py +0 -0
  188. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin-strict_ini/plugin_fail_baseConfig.py +0 -0
  189. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin_ini/plugin_fail.py +0 -0
  190. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/mypy-plugin_ini/plugin_fail_baseConfig.py +0 -0
  191. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin-strict_toml/plugin_fail.py +0 -0
  192. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin-strict_toml/plugin_fail_baseConfig.py +0 -0
  193. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin_toml/plugin_fail.py +0 -0
  194. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.2.0/pyproject-plugin_toml/plugin_fail_baseConfig.py +0 -0
  195. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-default_ini/fail4.py +0 -0
  196. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-default_ini/plugin_success.py +0 -0
  197. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin-strict_ini/plugin_default_factory.py +0 -0
  198. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin-strict_ini/plugin_fail.py +0 -0
  199. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin-strict_ini/plugin_fail_baseConfig.py +0 -0
  200. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin_ini/plugin_fail.py +0 -0
  201. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin_ini/plugin_fail_baseConfig.py +0 -0
  202. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/mypy-plugin_ini/pydantic_settings.py +0 -0
  203. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-default_toml/fail4.py +0 -0
  204. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin-strict_toml/plugin_fail.py +0 -0
  205. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin-strict_toml/plugin_fail_baseConfig.py +0 -0
  206. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin_toml/plugin_fail.py +0 -0
  207. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin_toml/plugin_fail_baseConfig.py +0 -0
  208. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/outputs/1.4.1/pyproject-plugin_toml/pydantic_settings.py +0 -0
  209. {pydantic-2.2.0 → pydantic-2.2.1}/tests/mypy/test_mypy.py +0 -0
  210. {pydantic-2.2.0 → pydantic-2.2.1}/tests/pyright/pyproject.toml +0 -0
  211. {pydantic-2.2.0 → pydantic-2.2.1}/tests/pyright/pyright_example.py +0 -0
  212. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_abc.py +0 -0
  213. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_aliases.py +0 -0
  214. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_annotated.py +0 -0
  215. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_assert_in_validators.py +0 -0
  216. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_callable.py +0 -0
  217. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_color.py +0 -0
  218. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_computed_fields.py +0 -0
  219. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_config.py +0 -0
  220. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_construction.py +0 -0
  221. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_create_model.py +0 -0
  222. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_dataclasses.py +0 -0
  223. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_datetime.py +0 -0
  224. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_decorators.py +0 -0
  225. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_deprecated.py +0 -0
  226. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_deprecated_validate_arguments.py +0 -0
  227. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_discriminated_union.py +0 -0
  228. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_docs.py +0 -0
  229. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_edge_cases.py +0 -0
  230. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_errors.py +0 -0
  231. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_exports.py +0 -0
  232. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_fastapi.sh +0 -0
  233. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_fastapi_json_schema.py +0 -0
  234. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_fields.py +0 -0
  235. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_forward_ref.py +0 -0
  236. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_generics.py +0 -0
  237. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_internal.py +0 -0
  238. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_json.py +0 -0
  239. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_json_schema.py +0 -0
  240. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_main.py +0 -0
  241. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_migration.py +0 -0
  242. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_model_signature.py +0 -0
  243. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_model_validator.py +0 -0
  244. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_networks.py +0 -0
  245. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_networks_ipaddress.py +0 -0
  246. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_parse.py +0 -0
  247. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_prepare_annotations.py +0 -0
  248. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_private_attributes.py +0 -0
  249. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_pydantic_extra_types.sh +0 -0
  250. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_pydantic_settings.sh +0 -0
  251. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_rich_repr.py +0 -0
  252. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_serialize.py +0 -0
  253. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_strict.py +0 -0
  254. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_structural_pattern_matching.py +0 -0
  255. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_tools.py +0 -0
  256. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_type_adapter.py +0 -0
  257. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_type_alias_type.py +0 -0
  258. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types.py +0 -0
  259. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types_namedtuple.py +0 -0
  260. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types_payment_card_number.py +0 -0
  261. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_types_typeddict.py +0 -0
  262. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_typing.py +0 -0
  263. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_utils.py +0 -0
  264. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_v1.py +0 -0
  265. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_validate_call.py +0 -0
  266. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_validators.py +0 -0
  267. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_validators_dataclass.py +0 -0
  268. {pydantic-2.2.0 → pydantic-2.2.1}/tests/test_version.py +0 -0
  269. {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.0
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.0
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
- if current_recursion_ref_count[ref] != 0:
471
- involved_in_recursion[ref] = True
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
@@ -56,6 +56,7 @@ PydanticErrorCodes = Literal[
56
56
  'multiple-field-serializers',
57
57
  'invalid_annotated_type',
58
58
  'type-adapter-config-unused',
59
+ 'root-model-extra',
59
60
  ]
60
61
 
61
62
 
@@ -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:
@@ -3,7 +3,7 @@ from typing import Tuple
3
3
 
4
4
  __all__ = 'VERSION', 'version_info'
5
5
 
6
- VERSION = '2.2.0'
6
+ VERSION = '2.2.1'
7
7
  """The version of Pydantic."""
8
8
 
9
9
 
@@ -61,7 +61,7 @@ requires-python = '>=3.7'
61
61
  dependencies = [
62
62
  'typing-extensions>=4.6.1',
63
63
  'annotated-types>=0.4.0',
64
- "pydantic-core==2.6.0",
64
+ "pydantic-core==2.6.1",
65
65
  ]
66
66
  dynamic = ['version', 'readme']
67
67
 
@@ -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