Skip to content

Commit

Permalink
Update _checkers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm authored Nov 3, 2024
1 parent 3699518 commit 40cd229
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/typeguard/_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ def check_uniontype(
)
finally:
del errors # avoid creating ref cycle

raise TypeCheckError(f"did not match any element in the union:\n{formatted_errors}")


Expand Down

0 comments on commit 40cd229

Please sign in to comment.