Skip to content

Commit

Permalink
fix for pydantic-core for v2.10 (#296)
Browse files Browse the repository at this point in the history
* fix for pydantic-core for v2.10

This is problem that mypy picked up since the release of pydantic-core v2.10

* pin to pydantic v2.4
  • Loading branch information
2bndy5 authored Oct 5, 2023
1 parent 52384ce commit 73cd809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sphinx>=4.5
markupsafe
pydantic>=2.0
pydantic>=2.4
pydantic-extra-types
typing-extensions
appdirs
Expand Down
2 changes: 1 addition & 1 deletion sphinx_immaterial/custom_admonitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def validate_name(cls, val):

@pydantic.field_validator("title")
@classmethod
def validate_title(cls, val, info: pydantic.FieldValidationInfo):
def validate_title(cls, val, info: pydantic.ValidationInfo):
if val is None:
val = " ".join(
re.split(r"[\-_]+", cast(str, info.data.get("name")))
Expand Down

0 comments on commit 73cd809

Please sign in to comment.