# TypeError: 'async with' received an object from __aenter__ that does not implement __await__: Timeout

- **ID:** `python/asyncio-timeout-context-manager-not-async`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Code uses async with asyncio.timeout() on a Python version where asyncio.timeout exists only as a plain context manager (or on an older version where it does not exist at all), or a custom Timeout object is returned instead of a coroutine.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (92% success)
   ```
   try:
    result = await asyncio.wait_for(coro(), timeout=5.0)
except asyncio.TimeoutError:
    result = None
   ```
2. **** (88% success)
   ```
   async with asyncio.timeout(5.0):
    await coro()
# note: 'async with', but NOT 'async with await'
   ```

## Dead Ends

- **** — asyncio.timeout is not a coroutine; awaiting it raises TypeError. (90% fail)
- **** — Does not actually cancel the inner coroutine, so the timeout never triggers. (80% fail)
