# TypeError: ids must be a list of strings or callable, got int

- **ID:** `python/pytest-parametrize-ids-type`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pytest.parametrize的ids参数如果提供整数列表，pytest会报错，因为ids必须是字符串或可调用对象。

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   ids=lambda x: str(x)
   ```
2. **** (90% success)
   ```
   ids=['case1', 'case2']
   ```

## Dead Ends

- **** — 转换后可能失去原始含义 (50% fail)
- **** — 不提供ids会生成默认ID，但可能不明确 (40% fail)
