mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 02:13:08 +00:00
Add test case for walrus operators in return types (#6438)
## Summary Closes https://github.com/astral-sh/ruff/issues/6437. ## Test Plan `cargo test`
This commit is contained in:
parent
53246b725e
commit
e91caea490
3 changed files with 20 additions and 0 deletions
|
@ -371,3 +371,8 @@ def f( # first
|
|||
# third
|
||||
):
|
||||
...
|
||||
|
||||
# Walrus operator in return type.
|
||||
def this_is_unusual() -> (please := no): ...
|
||||
|
||||
def this_is_unusual(x) -> (please := no): ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue