{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Error bookkeeping for "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "papyri gen"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "ErrorCollector"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is a context manager that wraps each per-qualname generation step. It distinguishes two buckets of failures:"
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Strong",
                      "__tag": 4048,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "expected"
                        }
                      ]
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " — listed under "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "[global.expected_errors]"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " in the   package's gen TOML; these don't fail the build."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Strong",
                      "__tag": 4048,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "unexpected"
                        }
                      ]
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " — anything else; logged with a traceback and   re-raised when "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "early_error"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is set."
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A third state, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "fail_unseen_error"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", raises "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "UnseenError"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " when an expected error never actually fired (so the allow-list stays trimmed)."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Attributes",
    "Methods",
    "Returns",
    "Yields",
    "Receives",
    "Other Parameters",
    "Raises",
    "Warns",
    "Warnings",
    "Notes"
  ],
  "item_file": "/papyri/error_collector.py",
  "item_line": 0,
  "item_type": "module",
  "aliases": [
    "papyri.error_collector"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": null,
  "references": null,
  "qa": "papyri.error_collector",
  "arbitrary": [
    {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Error bookkeeping for "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "papyri gen"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "ErrorCollector"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is a context manager that wraps each per-qualname generation step. It distinguishes two buckets of failures:"
            }
          ]
        },
        {
          "__type": "BulletList",
          "__tag": 4053,
          "ordered": false,
          "start": 1,
          "children": [
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Strong",
                      "__tag": 4048,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "expected"
                        }
                      ]
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " — listed under "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "[global.expected_errors]"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " in the   package's gen TOML; these don't fail the build."
                    }
                  ]
                }
              ]
            },
            {
              "__type": "ListItem",
              "__tag": 4054,
              "children": [
                {
                  "__type": "Paragraph",
                  "__tag": 4045,
                  "children": [
                    {
                      "__type": "Strong",
                      "__tag": 4048,
                      "children": [
                        {
                          "__type": "Text",
                          "__tag": 4046,
                          "value": "unexpected"
                        }
                      ]
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " — anything else; logged with a traceback and   re-raised when "
                    },
                    {
                      "__type": "InlineCode",
                      "__tag": 4051,
                      "value": "early_error"
                    },
                    {
                      "__type": "Text",
                      "__tag": 4046,
                      "value": " is set."
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A third state, "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "fail_unseen_error"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": ", raises "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "UnseenError"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " when an expected error never actually fired (so the allow-list stays trimmed)."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    }
  ],
  "local_refs": []
}