diff --git a/generators/python/core_utilities/fastapi/pydantic_utilities.py b/generators/python/core_utilities/fastapi/pydantic_utilities.py index 14ea6060bb9..118e5af43bc 100644 --- a/generators/python/core_utilities/fastapi/pydantic_utilities.py +++ b/generators/python/core_utilities/fastapi/pydantic_utilities.py @@ -140,7 +140,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/generators/python/core_utilities/pydantic/pydantic_utilities.py b/generators/python/core_utilities/pydantic/pydantic_utilities.py index 14ea6060bb9..118e5af43bc 100644 --- a/generators/python/core_utilities/pydantic/pydantic_utilities.py +++ b/generators/python/core_utilities/pydantic/pydantic_utilities.py @@ -140,7 +140,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/generators/python/core_utilities/sdk/pydantic_utilities.py b/generators/python/core_utilities/sdk/pydantic_utilities.py index 14ea6060bb9..118e5af43bc 100644 --- a/generators/python/core_utilities/sdk/pydantic_utilities.py +++ b/generators/python/core_utilities/sdk/pydantic_utilities.py @@ -140,7 +140,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/generators/python/sdk/CHANGELOG.md b/generators/python/sdk/CHANGELOG.md index 356bb169572..50483cdf7b9 100644 --- a/generators/python/sdk/CHANGELOG.md +++ b/generators/python/sdk/CHANGELOG.md @@ -5,11 +5,15 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [3.0.0-rc1] - 2024-07-16 +## [3.0.0-rc2] - 2024-07-24 + +- Fix: `update_forward_refs` no longer raises errors, preserving original behavior, pre-3.x. + +## [3.0.0-rc1] - 2024-07-23 - Fix: Sometimes mypy will error on the typing of `expected_types` within our test suite, despite them being labeled as `typing.Any`. This updates the types for tuples to `typing.Tuple[tying.Any, typing.Any]` to appease mypy. -## [3.0.0-rc0] - 2024-07-16 +## [3.0.0-rc0] - 2024-07-23 - Break: The generated SDK now supports Pydantic V2 outright, it no longer uses `pydantic.v1` models. This change introduces additional breaks: - Wrapped aliases have been removed diff --git a/generators/python/sdk/VERSION b/generators/python/sdk/VERSION index cf8213193d0..d15be84db61 100644 --- a/generators/python/sdk/VERSION +++ b/generators/python/sdk/VERSION @@ -1 +1 @@ -3.0.0-rc1 +3.0.0-rc2 diff --git a/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py b/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py index 1173209e45f..465b27148be 100644 --- a/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py +++ b/generators/python/tests/utils/example_models/types/core/pydantic_utilities.py @@ -145,7 +145,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/alias/core/pydantic_utilities.py b/seed/fastapi/alias/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/alias/core/pydantic_utilities.py +++ b/seed/fastapi/alias/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py b/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py +++ b/seed/fastapi/api-wide-base-path/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/audiences/core/pydantic_utilities.py b/seed/fastapi/audiences/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/audiences/core/pydantic_utilities.py +++ b/seed/fastapi/audiences/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py b/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py +++ b/seed/fastapi/auth-environment-variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py b/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py +++ b/seed/fastapi/basic-auth-environment-variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/basic-auth/core/pydantic_utilities.py b/seed/fastapi/basic-auth/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/basic-auth/core/pydantic_utilities.py +++ b/seed/fastapi/basic-auth/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py b/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py +++ b/seed/fastapi/bearer-token-environment-variable/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py b/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py +++ b/seed/fastapi/circular-references-advanced/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/circular-references/core/pydantic_utilities.py b/seed/fastapi/circular-references/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/circular-references/core/pydantic_utilities.py +++ b/seed/fastapi/circular-references/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/code-samples/core/pydantic_utilities.py b/seed/fastapi/code-samples/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/code-samples/core/pydantic_utilities.py +++ b/seed/fastapi/code-samples/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/custom-auth/core/pydantic_utilities.py b/seed/fastapi/custom-auth/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/custom-auth/core/pydantic_utilities.py +++ b/seed/fastapi/custom-auth/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/error-property/core/pydantic_utilities.py b/seed/fastapi/error-property/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/error-property/core/pydantic_utilities.py +++ b/seed/fastapi/error-property/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/examples/core/pydantic_utilities.py b/seed/fastapi/examples/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/examples/core/pydantic_utilities.py +++ b/seed/fastapi/examples/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py b/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/no-custom-config/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py b/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/pydantic-v1/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py b/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/pydantic-v2/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py b/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py index a7d4456daa8..e2901360572 100644 --- a/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py +++ b/seed/fastapi/exhaustive/skip-formatting/core/pydantic_utilities.py @@ -142,7 +142,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/extends/core/pydantic_utilities.py b/seed/fastapi/extends/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/extends/core/pydantic_utilities.py +++ b/seed/fastapi/extends/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/extra-properties/core/pydantic_utilities.py b/seed/fastapi/extra-properties/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/extra-properties/core/pydantic_utilities.py +++ b/seed/fastapi/extra-properties/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/folders/core/pydantic_utilities.py b/seed/fastapi/folders/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/folders/core/pydantic_utilities.py +++ b/seed/fastapi/folders/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/idempotency-headers/core/pydantic_utilities.py b/seed/fastapi/idempotency-headers/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/idempotency-headers/core/pydantic_utilities.py +++ b/seed/fastapi/idempotency-headers/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py b/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py +++ b/seed/fastapi/imdb/includes-extra-fields/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py b/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py +++ b/seed/fastapi/imdb/no-custom-config/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/mixed-case/core/pydantic_utilities.py b/seed/fastapi/mixed-case/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/mixed-case/core/pydantic_utilities.py +++ b/seed/fastapi/mixed-case/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/multi-line-docs/core/pydantic_utilities.py b/seed/fastapi/multi-line-docs/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/multi-line-docs/core/pydantic_utilities.py +++ b/seed/fastapi/multi-line-docs/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py b/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py +++ b/seed/fastapi/multi-url-environment-no-default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/multi-url-environment/core/pydantic_utilities.py b/seed/fastapi/multi-url-environment/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/multi-url-environment/core/pydantic_utilities.py +++ b/seed/fastapi/multi-url-environment/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/no-environment/core/pydantic_utilities.py b/seed/fastapi/no-environment/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/no-environment/core/pydantic_utilities.py +++ b/seed/fastapi/no-environment/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials-default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials-environment-variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials-nested-root/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py b/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py +++ b/seed/fastapi/oauth-client-credentials/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/object/core/pydantic_utilities.py b/seed/fastapi/object/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/object/core/pydantic_utilities.py +++ b/seed/fastapi/object/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/objects-with-imports/core/pydantic_utilities.py b/seed/fastapi/objects-with-imports/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/objects-with-imports/core/pydantic_utilities.py +++ b/seed/fastapi/objects-with-imports/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/optional/core/pydantic_utilities.py b/seed/fastapi/optional/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/optional/core/pydantic_utilities.py +++ b/seed/fastapi/optional/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/package-yml/core/pydantic_utilities.py b/seed/fastapi/package-yml/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/package-yml/core/pydantic_utilities.py +++ b/seed/fastapi/package-yml/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/pagination/core/pydantic_utilities.py b/seed/fastapi/pagination/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/pagination/core/pydantic_utilities.py +++ b/seed/fastapi/pagination/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/plain-text/core/pydantic_utilities.py b/seed/fastapi/plain-text/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/plain-text/core/pydantic_utilities.py +++ b/seed/fastapi/plain-text/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/reserved-keywords/core/pydantic_utilities.py b/seed/fastapi/reserved-keywords/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/reserved-keywords/core/pydantic_utilities.py +++ b/seed/fastapi/reserved-keywords/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py b/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py +++ b/seed/fastapi/single-url-environment-default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py b/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py +++ b/seed/fastapi/single-url-environment-no-default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/trace/core/pydantic_utilities.py b/seed/fastapi/trace/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/trace/core/pydantic_utilities.py +++ b/seed/fastapi/trace/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py b/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py +++ b/seed/fastapi/undiscriminated-unions/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/unions/core/pydantic_utilities.py b/seed/fastapi/unions/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/unions/core/pydantic_utilities.py +++ b/seed/fastapi/unions/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/unknown/core/pydantic_utilities.py b/seed/fastapi/unknown/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/unknown/core/pydantic_utilities.py +++ b/seed/fastapi/unknown/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/validation/core/pydantic_utilities.py b/seed/fastapi/validation/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/validation/core/pydantic_utilities.py +++ b/seed/fastapi/validation/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/variables/core/pydantic_utilities.py b/seed/fastapi/variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/variables/core/pydantic_utilities.py +++ b/seed/fastapi/variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/version-no-default/core/pydantic_utilities.py b/seed/fastapi/version-no-default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/version-no-default/core/pydantic_utilities.py +++ b/seed/fastapi/version-no-default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/version/core/pydantic_utilities.py b/seed/fastapi/version/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/version/core/pydantic_utilities.py +++ b/seed/fastapi/version/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/fastapi/websocket/core/pydantic_utilities.py b/seed/fastapi/websocket/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/fastapi/websocket/core/pydantic_utilities.py +++ b/seed/fastapi/websocket/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py b/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py +++ b/seed/pydantic/alias/src/seed/alias/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py b/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py +++ b/seed/pydantic/api-wide-base-path/src/seed/api_wide_base_path/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py b/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py +++ b/seed/pydantic/audiences/src/seed/audiences/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py b/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py +++ b/seed/pydantic/auth-environment-variables/src/seed/auth_environment_variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py b/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py +++ b/seed/pydantic/basic-auth-environment-variables/src/seed/basic_auth_environment_variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py b/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py +++ b/seed/pydantic/basic-auth/src/seed/basic_auth/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py b/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py +++ b/seed/pydantic/bearer-token-environment-variable/src/seed/bearer_token_environment_variable/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py b/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py +++ b/seed/pydantic/bytes/src/seed/bytes/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/circular-references-advanced/src/seed/api/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/circular-references/src/seed/api/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py b/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py +++ b/seed/pydantic/code-samples/src/seed/code_samples/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py b/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py +++ b/seed/pydantic/custom-auth/src/seed/custom_auth/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py b/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py +++ b/seed/pydantic/enum/src/seed/enum/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py b/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py +++ b/seed/pydantic/error-property/src/seed/error_property/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py b/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py +++ b/seed/pydantic/examples/src/seed/examples/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py b/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py +++ b/seed/pydantic/exhaustive/pydantic-v1/src/seed/exhaustive/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py b/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py +++ b/seed/pydantic/exhaustive/pydantic-v2/src/seed/exhaustive/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py b/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py +++ b/seed/pydantic/extends/src/seed/extends/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py b/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py +++ b/seed/pydantic/extra-properties/src/seed/extra_properties/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py b/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py +++ b/seed/pydantic/file-download/src/seed/file_download/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py b/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py +++ b/seed/pydantic/file-upload/src/seed/file_upload/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/folders/src/seed/api/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py b/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py +++ b/seed/pydantic/idempotency-headers/src/seed/idempotency_headers/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py b/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py +++ b/seed/pydantic/imdb/src/seed/api/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py b/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py +++ b/seed/pydantic/literal/src/seed/literal/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py b/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py +++ b/seed/pydantic/mixed-case/src/seed/mixed_case/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py b/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py +++ b/seed/pydantic/multi-line-docs/src/seed/multi_line_docs/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py b/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py +++ b/seed/pydantic/multi-url-environment-no-default/src/seed/multi_url_environment_no_default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py b/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py +++ b/seed/pydantic/multi-url-environment/src/seed/multi_url_environment/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py b/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py +++ b/seed/pydantic/no-environment/src/seed/no_environment/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials-default/src/seed/oauth_client_credentials_default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials-environment-variables/src/seed/oauth_client_credentials_environment_variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials-nested-root/src/seed/oauth_client_credentials/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py b/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py +++ b/seed/pydantic/oauth-client-credentials/src/seed/oauth_client_credentials/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py b/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py +++ b/seed/pydantic/object/src/seed/object/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py b/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py +++ b/seed/pydantic/objects-with-imports/src/seed/objects_with_imports/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py b/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py +++ b/seed/pydantic/optional/src/seed/objects_with_imports/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py b/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py +++ b/seed/pydantic/package-yml/src/seed/package_yml/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py b/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py +++ b/seed/pydantic/pagination/src/seed/pagination/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py b/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py +++ b/seed/pydantic/plain-text/src/seed/plain_text/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py b/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py +++ b/seed/pydantic/query-parameters/src/seed/query_parameters/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py b/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py +++ b/seed/pydantic/reserved-keywords/src/seed/nursery_api/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py b/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py +++ b/seed/pydantic/response-property/src/seed/response_property/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py b/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py +++ b/seed/pydantic/server-sent-events/src/seed/server_sent_events/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py b/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py +++ b/seed/pydantic/single-url-environment-default/src/seed/single_url_environment_default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py b/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py +++ b/seed/pydantic/single-url-environment-no-default/src/seed/single_url_environment_no_default/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py b/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py +++ b/seed/pydantic/streaming-parameter/src/seed/streaming/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py b/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py +++ b/seed/pydantic/streaming/src/seed/streaming/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py b/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py +++ b/seed/pydantic/trace/src/seed/trace/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py b/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py +++ b/seed/pydantic/undiscriminated-unions/src/seed/undiscriminated_unions/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py b/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py +++ b/seed/pydantic/unions/src/seed/unions/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py b/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py +++ b/seed/pydantic/unknown/src/seed/unknown_as_any/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py b/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py +++ b/seed/pydantic/validation/src/seed/validation/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py b/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py +++ b/seed/pydantic/variables/src/seed/variables/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py b/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py +++ b/seed/pydantic/version-no-default/src/seed/version/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py b/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py +++ b/seed/pydantic/version/src/seed/version/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py b/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py +++ b/seed/pydantic/websocket/src/seed/websocket/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py b/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/alias/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py b/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/api-wide-base-path/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py b/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/audiences/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/auth-environment-variables/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/basic-auth-environment-variables/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py b/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/basic-auth/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py b/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/bearer-token-environment-variable/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py b/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/bytes/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py b/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/circular-references-advanced/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py b/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/circular-references/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py b/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/code-samples/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py b/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/custom-auth/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/enum/no-custom-config/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py b/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/enum/strenum/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py b/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/error-property/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py b/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/examples/client-filename/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/examples/no-custom-config/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py b/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/examples/readme/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/deps_with_min_python_version/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/extra_dependencies/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/extra_dev_dependencies/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/five-second-timeout/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/follow_redirects_by_default/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/improved_imports/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/infinite-timeout/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/inline_request_params/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/no-custom-config/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/pydantic-extra-fields/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/pydantic-v1/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/skip-pydantic-validation/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py b/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/exhaustive/union-utils/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py b/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/extends/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py b/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/extra-properties/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/file-download/src/seed/core/pydantic_utilities.py b/seed/python-sdk/file-download/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/file-download/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/file-download/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py b/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/file-upload/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py b/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/folders/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py b/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/idempotency-headers/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py b/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/imdb/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/literal/src/seed/core/pydantic_utilities.py b/seed/python-sdk/literal/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/literal/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/literal/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py b/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/mixed-case/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py b/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/multi-line-docs/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/multi-url-environment-no-default/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py b/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/multi-url-environment/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py b/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/no-environment/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials-default/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials-environment-variables/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials-nested-root/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py b/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/oauth-client-credentials/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/object/src/seed/core/pydantic_utilities.py b/seed/python-sdk/object/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/object/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/object/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py b/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/objects-with-imports/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py b/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/optional/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py b/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/package-yml/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py b/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/pagination/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py b/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/plain-text/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py b/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/query-parameters/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py b/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/reserved-keywords/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py b/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/server-sent-events/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/single-url-environment-default/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/single-url-environment-no-default/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py b/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/streaming-parameter/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/streaming/no-custom-config/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py b/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/streaming/skip-pydantic-validation/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py b/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/undiscriminated-unions/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/unions/no-custom-config/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py b/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/unions/union-utils/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py b/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/unknown/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py b/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/validation/no-custom-config/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py b/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/validation/with-defaults/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py b/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/variables/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py b/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/version-no-default/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/version/src/seed/core/pydantic_utilities.py b/seed/python-sdk/version/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/version/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/version/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns) diff --git a/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py b/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py index 0f24b0ea894..7c5418b5cf7 100644 --- a/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py +++ b/seed/python-sdk/websocket/src/seed/core/pydantic_utilities.py @@ -138,7 +138,7 @@ def encode_by_type(o: typing.Any) -> typing.Any: def update_forward_refs(model: typing.Type["Model"], **localns: typing.Any) -> None: if IS_PYDANTIC_V2: - model.model_rebuild(force=True) # type: ignore # Pydantic v2 + model.model_rebuild(force=True, raise_errors=False) # type: ignore # Pydantic v2 else: model.update_forward_refs(**localns)