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

- **ID:** `python/pytest-approx-comparison-type-error`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Using pytest.approx on non-numeric types like strings.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   assert float('3.14') == pytest.approx(3.14)
   ```
2. **** (99% success)
   ```
   assert 'hello' == 'hello'
   ```

## Dead Ends

- **** — If the strings are not numeric, conversion raises ValueError. (70% fail)
- **** — approx only works with numeric types. (100% fail)
