Skip to content

Commit

Permalink
Fixed wrong test condition in check_variable_assignment()
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Mar 15, 2023
1 parent 98ee364 commit a52c655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typeguard/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def check_variable_assignment(
if type_checks_suppressed:
return

if len(expected_annotations) == 1:
if len(expected_annotations) > 1:
source_values = cast("Iterable[Any]", value)
else:
source_values = (value,)
Expand Down

0 comments on commit a52c655

Please sign in to comment.