# TypeError: 'function' object is not callable in path operation

- **ID:** `python/fastapi-typeerror-path-operation-not-callable`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A decorator is used without parentheses, e.g., @app.get instead of @app.get().

## Version Compatibility

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

## Workarounds

1. **Use decorator with parentheses and path** (95% success)
   ```
   @app.get('/items')
async def get_items():
    return []
   ```
2. **Check for missing parentheses in custom decorators** (90% success)
   ```
   def my_decorator(func):
    return func
# Use: @my_decorator
def my_func(): pass
   ```

## Dead Ends

- **Adding parentheses but not passing path** — Still missing required argument. (60% fail)
- **Using class-based view incorrectly** — May conflict with function-based approach. (50% fail)
