-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
questionAsking for support or clarificationAsking for support or clarification
Description
Given
set([name for project in projects for name in await get_users(project)])Ruff outputs
Unnecessary
listcomprehension (rewrite as asetcomprehension) Ruff (C403)
But doing so leads to a runtime error
TypeError: 'async_generator' object is not iterable.
Note that C403 is not triggered by using list() instead of brackets on the comprehension, but it still causes the same runtime error.
Ruff: 0.8.0
Python 3.11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionAsking for support or clarificationAsking for support or clarification