Skip to content

Commit

Permalink
Merge branch 'main' into fix-strict-for-unions
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-runkle authored Feb 25, 2025
2 parents 5bcaaf8 + bd0bde2 commit cef51f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,12 @@ jobs:
- uses: actions/checkout@v4

- name: install rust nightly
uses: dtolnay/rust-toolchain@nightly
uses: dtolnay/rust-toolchain@master
with:
components: rust-src
targets: wasm32-unknown-emscripten
# might be able to unpin when pydodide uses emscripten 4, see below
toolchain: nightly-2025-02-17

- name: cache rust
uses: Swatinem/rust-cache@v2
Expand Down
7 changes: 6 additions & 1 deletion python/pydantic_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,16 @@ class ErrorDetails(_TypedDict):
Values which are required to render the error message, and could hence be useful in rendering custom error messages.
Also useful for passing custom error data forward.
"""
url: _NotRequired[str]
"""
The documentation URL giving information about the error. No URL is available if
a [`PydanticCustomError`][pydantic_core.PydanticCustomError] is used.
"""


class InitErrorDetails(_TypedDict):
type: str | PydanticCustomError
"""The type of error that occurred, this should a "slug" identifier that changes rarely or never."""
"""The type of error that occurred, this should be a "slug" identifier that changes rarely or never."""
loc: _NotRequired[tuple[int | str, ...]]
"""Tuple of strings and ints identifying where in the schema the error occurred."""
input: _Any
Expand Down

0 comments on commit cef51f9

Please sign in to comment.