# TypeError: 'Depends' object is not callable

- **ID:** `python/fastapi-dependency-error-callable`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Using Depends incorrectly as a function instead of a dependency injection.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **Use Depends as a parameter without calling it.** (95% success)
   ```
   from fastapi import Depends
async def read_items(db: Session = Depends(get_db)):
   ```
2. **If using a callable dependency, define it as a function and pass it to Depends.** (90% success)
   ```
   def common_parameters(q: str = None):
    return {'q': q}

@app.get('/items')
async def read_items(commons: dict = Depends(common_parameters)):
   ```

## Dead Ends

- **Calling Depends() with parentheses inside a function parameter.** — Depends should be used without calling it; it's a class. (80% fail)
- **Importing Depends from the wrong module.** — Depends is from fastapi, not from fastapi.params. (60% fail)
