Skip to content

Commit

Permalink
Fixed small bug in UnionValidationFailure.
Browse files Browse the repository at this point in the history
  • Loading branch information
sg495 committed Jan 30, 2024
1 parent 894c061 commit 8b18f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typing_validation/validation_failure.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def __new__(
instance = super().__new__(
cls, val, t, *causes, type_aliases=type_aliases
)
assert all(cause.val == val for cause in causes)
assert all(cause.val is val for cause in causes)
return instance

def _str_type_descr(self, type_quals: tuple[str, ...] = ()) -> str:
Expand Down

0 comments on commit 8b18f58

Please sign in to comment.