Skip to content

Commit 160dc3e

Browse files
committed
Tweaks
1 parent 2ba99f6 commit 160dc3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/@tests/test_cases/collections/check_counter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
mixed_type_counter["baz"] += 1.5
2626
assert_type(mixed_type_counter, "Counter[str, int | float]")
2727

28-
# Type assertions to check the merging of Counter types
28+
# Check ORing and ANDing Counters with different value types
2929
assert_type(mixed_type_counter or decimal_counts, "Counter[str, int | float] | Counter[str, Decimal]")
3030
assert_type(decimal_counts or mixed_type_counter, "Counter[str, Decimal] | Counter[str, int | float]")
3131
assert_type(mixed_type_counter and decimal_counts, "Counter[str, int | float] | Counter[str, Decimal]")
3232
assert_type(decimal_counts and mixed_type_counter, "Counter[str, Decimal] | Counter[str, int | float]")
3333

34-
# Demonstrating type incompatibility during addition of Counters with different value types
34+
# We shouldn't be able to add Counters with incompatible value types
3535
_ = mixed_type_counter + decimal_counts # type: ignore
3636
mixed_type_counter += decimal_counts # type: ignore
3737

0 commit comments

Comments
 (0)