Skip to content

Commit

Permalink
Fixed issue with missing argument to on_type_mismatch callback
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusfrdk committed Feb 7, 2025
1 parent 2c0de38 commit 217e87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomlval/toml_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _run_handler(key: str, value: Any) -> Any:
# Built-in type
if isinstance(_handler, type) and not isinstance(value, _handler):
return self._on_type_mismatch(
expected=_handler, got=type(value)
key=key, expected=_handler, got=type(value)
)

# Function
Expand Down

0 comments on commit 217e87a

Please sign in to comment.