Skip to content

Commit

Permalink
fix for pydantic-core for v2.10
Browse files Browse the repository at this point in the history
This is problem that mypy picked up since the release of pydantic-core v2.10
  • Loading branch information
2bndy5 committed Oct 1, 2023
1 parent 52384ce commit d8f6cd4
Showing 1 changed file with 1 addition and 1 deletion.
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 d8f6cd4

Please sign in to comment.