{
  "id": "python/pytest-parametrize-ids-type",
  "signature": "TypeError: ids must be a list of strings or callable, got int",
  "signature_zh": "类型错误：ids必须是字符串列表或可调用对象，但得到的是整数",
  "regex": "TypeError:\\ ids\\ must\\ be\\ a\\ list\\ of\\ strings\\ or\\ callable,\\ got\\ int",
  "domain": "python",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "pytest.parametrize的ids参数如果提供整数列表，pytest会报错，因为ids必须是字符串或可调用对象。",
  "root_cause_type": "generic",
  "root_cause_zh": "pytest.parametrize的ids参数如果提供整数列表，pytest会报错，因为ids必须是字符串或可调用对象。",
  "versions": [
    {
      "version": "7.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "8.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "转换后可能失去原始含义",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "不提供ids会生成默认ID，但可能不明确",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "ids=lambda x: str(x)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "ids=['case1', 'case2']",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}