From b15df63b2cc23d2bbd55c8403c78f80f534ddcff Mon Sep 17 00:00:00 2001 From: Kinuax Date: Mon, 28 Jul 2025 09:27:30 +0200 Subject: [PATCH 1/2] Clarify ValidationError.from_exception_data docstring --- python/pydantic_core/_pydantic_core.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pydantic_core/_pydantic_core.pyi b/python/pydantic_core/_pydantic_core.pyi index dceddbf99..01a7b336a 100644 --- a/python/pydantic_core/_pydantic_core.pyi +++ b/python/pydantic_core/_pydantic_core.pyi @@ -647,7 +647,7 @@ class ValidationError(ValueError): Python constructor for a Validation Error. The API for constructing validation errors will probably change in the future, - hence the static method rather than `__init__`. + hence the class method rather than `__init__`. Arguments: title: The title of the error, as used in the heading of `str(validation_error)` From 6ac4d7a8fb5b0cdb6f67e64f8c992e3ec806c7e4 Mon Sep 17 00:00:00 2001 From: Kinuax Date: Mon, 28 Jul 2025 13:32:10 +0200 Subject: [PATCH 2/2] Simplify ValidationError.from_exception_data docstring --- python/pydantic_core/_pydantic_core.pyi | 3 --- 1 file changed, 3 deletions(-) diff --git a/python/pydantic_core/_pydantic_core.pyi b/python/pydantic_core/_pydantic_core.pyi index 01a7b336a..07b995761 100644 --- a/python/pydantic_core/_pydantic_core.pyi +++ b/python/pydantic_core/_pydantic_core.pyi @@ -646,9 +646,6 @@ class ValidationError(ValueError): """ Python constructor for a Validation Error. - The API for constructing validation errors will probably change in the future, - hence the class method rather than `__init__`. - Arguments: title: The title of the error, as used in the heading of `str(validation_error)` line_errors: A list of [`InitErrorDetails`][pydantic_core.InitErrorDetails] which contain information