mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 23:24:31 -05:00
Fix instability with await fluent style (#8676)
Fix an instability where await was followed by a breaking fluent style
expression:
```python
test_data = await (
Stream.from_async(async_data)
.flat_map_async()
.map()
.filter_async(is_valid_data)
.to_list()
)
```
Note that this technically a minor style change (see ecosystem check)
This commit is contained in:
@@ -48,3 +48,12 @@ await (
|
||||
# comment
|
||||
[foo]
|
||||
)
|
||||
|
||||
# https://github.com/astral-sh/ruff/issues/8644
|
||||
test_data = await (
|
||||
Stream.from_async(async_data)
|
||||
.flat_map_async()
|
||||
.map()
|
||||
.filter_async(is_valid_data)
|
||||
.to_list()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user