Skip to content

Commit a9572ff

Browse files
author
Vaishnavi KN
committed
Fix walrus assignment test formatting and naming
1 parent 870ca9c commit a9572ff

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

test-data/unit/check-expressions.test

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,10 +2539,9 @@ def last_known_value() -> None:
25392539
reveal_type(z) # N: Revealed type is "builtins.str"
25402540
[builtins fixtures/primitives.pyi]
25412541

2542-
[case walrus_operator_in_comprehension_infers_type]
2543-
# Ensure that assignment expressions (:=) inside comprehensions
2544-
# correctly infer and propagate the assigned variable's type
2545-
# outside the comprehension scope.
2542+
[case testWalrusAssignmentInCallArguments]
2543+
# Ensure that assignment expressions (:=) in earlier call arguments
2544+
# propagate type information to later arguments in the same call.
25462545

25472546
from dataclasses import dataclass
25482547

@@ -2571,6 +2570,4 @@ cases = [
25712570
],
25722571
]
25732572

2574-
reveal_type(request_reference)
2575-
[out]
2576-
builtins.str
2573+
reveal_type(request_reference) # N: Revealed type is "builtins.str"

0 commit comments

Comments
 (0)