fix(types): clear 9 mypy --strict errors (audit-10 M1)
Adds dlm.base_models._typed_shims.load_auto_processor centralizing
the AutoProcessor.from_pretrained call that has untyped stubs; routes
all 6 call sites through the shim. Widens narrow ndarray Any-returns
in vl_cache/vl_preprocessor. Drops a stale unused type:ignore in
vl_snapshot. Casts section_type to the Literal in replay snapshotting
+ filters media (IMAGE/AUDIO) sections before instantiation — those
don't belong in the text-only replay corpus and would have raised
pydantic ValidationError at runtime on a VL/audio training run.
CLAUDE.md contract: never loosen mypy strictness. Back to 0 errors.
the AutoProcessor.from_pretrained call that has untyped stubs; routes
all 6 call sites through the shim. Widens narrow ndarray Any-returns
in vl_cache/vl_preprocessor. Drops a stale unused type:ignore in
vl_snapshot. Casts section_type to the Literal in replay snapshotting
+ filters media (IMAGE/AUDIO) sections before instantiation — those
don't belong in the text-only replay corpus and would have raised
pydantic ValidationError at runtime on a VL/audio training run.
CLAUDE.md contract: never loosen mypy strictness. Back to 0 errors.
- SHA
1a38636df5f46ef94a277771bcb9c15745a5aa4a- Parents
-
56e4fd2 - Tree
d12c43c