Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix walrus assignment type propagation across call arguments#20427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Vaishnavi-KN wants to merge5 commits intopython:master
base:master
Choose a base branch
Loading
fromVaishnavi-KN:fix-walrus-call-args
Open
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Fix walrus assignment test formatting and naming
  • Loading branch information
@Vaishnavi-KN
Vaishnavi-KN committedDec 17, 2025
commita9572ffbcd4be9848cbd43e4bd42e4f3e9da31ff
11 changes: 4 additions & 7 deletionstest-data/unit/check-expressions.test
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2539,10 +2539,9 @@ def last_known_value() -> None:
reveal_type(z) # N: Revealed type is "builtins.str"
[builtins fixtures/primitives.pyi]

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

from dataclasses import dataclass

Expand DownExpand Up@@ -2571,6 +2570,4 @@ cases = [
],
]

reveal_type(request_reference)
[out]
builtins.str
reveal_type(request_reference) # N: Revealed type is "builtins.str"
Loading

[8]ページ先頭

©2009-2025 Movatter.jp