📦 deps(thirdparty): update snapshots

This commit is contained in:
ci[bot]
2026-07-03 16:04:10 +00:00
parent 2bf579321a
commit b40381458b
482 changed files with 8324 additions and 2007 deletions
@@ -2,10 +2,14 @@
from __future__ import annotations
import subprocess
import xml.etree.ElementTree as ET
from dataclasses import dataclass
from pathlib import Path
try:
from defusedxml import ElementTree as ET
except ImportError: # pragma: no cover - guidance for direct script use
ET = None
@dataclass(frozen=True)
class RunInfo:
@@ -43,6 +47,8 @@ def toc(trace_path: Path) -> TraceInfo:
The TOC is small (a few KB) so we load it fully rather than streaming.
"""
if ET is None:
raise RuntimeError("Install defusedxml before parsing xctrace XML exports.")
xml_bytes = _run_export(trace_path, ["--toc"])
root = ET.fromstring(xml_bytes)
@@ -6,10 +6,14 @@ a global id cache for later ref lookups.
"""
from __future__ import annotations
import xml.etree.ElementTree as ET
from collections.abc import Iterator
from dataclasses import dataclass
try:
from defusedxml import ElementTree as ET
except ImportError: # pragma: no cover - guidance for direct script use
ET = None
@dataclass(frozen=True)
class Column:
@@ -26,6 +30,8 @@ class RowStream:
"""
def __init__(self, xml_bytes: bytes):
if ET is None:
raise RuntimeError("Install defusedxml before parsing xctrace XML exports.")
self._xml = xml_bytes
self.columns: list[Column] = []
self._id_cache: dict[str, ET.Element] = {}