Skip to content

async comprehension formatting is broken #372

@ambv

Description

@ambv

Expected:

async def func():
    if test:
        out_batched = [
            i
            async for i in aitertools._async_map(
                self.async_inc, arange(8), batch_size=3
            )
        ]

Actual:

async def func():
    if test:
        out_batched = [
            i async
            for i in aitertools._async_map(self.async_inc, arange(8), batch_size=3)
        ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions