8000 Add API documentation for `ErrorDetails.url` (#1642) · pydantic/pydantic-core@6a31b3b · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a31b3b

Browse files
authored
Add API documentation for ErrorDetails.url (#1642)
1 parent 248bd8b commit 6a31b3b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/pydantic_core/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ class ErrorDetails(_TypedDict):
8989
Values which are required to render the error message, and could hence be useful in rendering custom error messages.
9090
Also useful for passing custom error data forward.
9191
"""
92+
url: _NotRequired[str]
93+
"""
94+
The documentation URL giving information about the error. No URL is available if
95+
a [`PydanticCustomError`][pydantic_core.PydanticCustomError] is used.
96+
"""
9297

9398

9499
class InitErrorDetails(_TypedDict):

0 commit comments

Comments
 (0)
0