# TypeError: unsupported operand type(s) for +: 'int' and 'str'

- **ID:** `python/typeerror-unsupported-operand-type`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A test function tries to add an integer and a string, which is not allowed without explicit conversion.

## Version Compatibility

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

## Workarounds

1. **Convert string to int before addition** (95% success)
   ```
   result = 5 + int('3')
   ```
2. **Ensure type consistency in test data** (90% success)
   ```
   a = 5; b = 3; result = a + b
   ```

## Dead Ends

- **Using str() on both operands** — Converts both to strings, resulting in concatenation instead of addition. (50% fail)
- **Using int() on string without validation** — If string is not numeric, int() raises ValueError. (60% fail)
