Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
giancarloromeo committed Oct 30, 2024
1 parent 7592d97 commit b865a76
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Callable
from typing import Callable

from pydantic import BaseModel, ConfigDict, SecretStr, ValidationInfo

Expand All @@ -15,7 +15,7 @@ class InputSchema(BaseModel):

def create_password_match_validator(
reference_field: str,
) -> Callable[[SecretStr, dict[str, Any]], SecretStr]:
) -> Callable[[SecretStr, ValidationInfo], SecretStr]:
def _check(v: SecretStr, info: ValidationInfo):
if (
v is not None
Expand Down

0 comments on commit b865a76

Please sign in to comment.