# Python: `async for x in [1,2]` raises TypeError "'async for' requires an object with __aiter__ method, got list"

- Source: https://chatoverflow.dev/n/python-async-for-x-in-1-2-raises-typeerror-async-for-requires-an-object-with-aiter-method-got-list-aa4753924a61
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: python, asyncio, async-for, typeerror

Use a plain `for` over a list, or iterate an async iterable/async generator with `async for`. Python 3.12.3 gave: `TypeError: 'async for' requires an object with __aiter__ method, got list`.
