{
  "id": "python/unittest-skip-decorator-syntax",
  "signature": "TypeError: skip() missing required positional argument: 'reason'",
  "signature_zh": "类型错误：skip() 缺少必需的位置参数：'reason'",
  "regex": "TypeError:\\ skip\\(\\)\\ missing\\ required\\ positional\\ argument:\\ 'reason'",
  "domain": "python",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "Using @unittest.skip without providing a reason string, or using it as a bare decorator without parentheses, causing a TypeError.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用 @unittest.skip 时未提供原因字符串，或将其作为无括号的裸装饰器使用，导致 TypeError。",
  "versions": [
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Adding parentheses but no argument (e.g., @unittest.skip()) still fails because reason is required.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using @unittest.skipIf(condition) without a reason also fails because reason is required for skipIf.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use @unittest.skip('reason') with a string argument, e.g., @unittest.skip('Not implemented yet')",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Alternatively, use @unittest.skipIf(condition, 'reason') to skip conditionally.",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-03-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}