Sweep all 296 v2 modules: simplify verbose docstrings/comments and remove 376 dangling "(design_vN §X)" citations to the now-deleted design docs (v2/README.md is the source of truth). Comment/docstring-only — AST-verified code-identical; the CPU suite holds at 237 passed / 5 pre-existing. Also applies yapf + ruff --fix auto-fixes (import ordering, forward-ref annotation de-quoting under `from __future__ import annotations`; behavior- neutral, suite-confirmed) and adds the legitimate domain terms mot/clen/te to the codespell ignore-list. Remaining ruff (24) + mypy (68 no-untyped-call) findings are pre-existing v2 debt, untouched here.
61 lines
1.3 KiB
Python
61 lines
1.3 KiB
Python
"""Request plane — typed runtime objects crossing the product boundary."""
|
|
from __future__ import annotations
|
|
|
|
from v2.request.artifacts import (
|
|
Artifact,
|
|
AudioArtifact,
|
|
LatentArtifact,
|
|
Output,
|
|
TensorArtifact,
|
|
TextArtifact,
|
|
VideoArtifact,
|
|
)
|
|
from v2.request.cancel import CancelKind, Cancelled, CancelScope
|
|
from v2.request.modalpart import (
|
|
ActionPart,
|
|
AudioPart,
|
|
ImagePart,
|
|
LatentPart,
|
|
Modality,
|
|
ModalPart,
|
|
TextPart,
|
|
VideoPart,
|
|
)
|
|
from v2.request.params import CaptureMode, DiffusionParams, OutputSpec, SamplingParams
|
|
from v2.request.requests import Request, Session, make_request, new_request_id
|
|
from v2.request.streams import OmniEvent, Stream, StreamChunk
|
|
from v2.request.tasks import TaskType
|
|
|
|
__all__ = [
|
|
"TaskType",
|
|
"Modality",
|
|
"ModalPart",
|
|
"TextPart",
|
|
"ImagePart",
|
|
"VideoPart",
|
|
"AudioPart",
|
|
"ActionPart",
|
|
"LatentPart",
|
|
"SamplingParams",
|
|
"DiffusionParams",
|
|
"OutputSpec",
|
|
"CaptureMode",
|
|
"Request",
|
|
"Session",
|
|
"make_request",
|
|
"new_request_id",
|
|
"Artifact",
|
|
"VideoArtifact",
|
|
"AudioArtifact",
|
|
"TextArtifact",
|
|
"TensorArtifact",
|
|
"LatentArtifact",
|
|
"Output",
|
|
"Stream",
|
|
"OmniEvent",
|
|
"StreamChunk",
|
|
"CancelScope",
|
|
"CancelKind",
|
|
"Cancelled",
|
|
]
|