Skip to content

Commit c84c0a9

Browse files
FynnBeadriangb
andauthored
fix context may be None (#696)
Co-authored-by: Adrian Garcia Badaracco <[email protected]>
1 parent a6e9db5 commit c84c0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_core/core_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class ValidationInfo(Protocol):
144144
"""
145145

146146
@property
147-
def context(self) -> Dict[str, Any]:
147+
def context(self) -> Any | None:
148148
"""Current validation context."""
149149
...
150150

0 commit comments

Comments
 (0)