gabriel / musehub public
fix BREAKING task/typing-audit #3 / 4
AI Agent gabriel · 166 days ago · Apr 12, 2026 · Diff

fix: typing audit — zero violations across all test files

- Define TypedDicts for structured payloads (SymbolEntry, Delta, S3Response, wire object payloads) - Replace param/return object with concrete unions and named type aliases - Replace dict[str, Any]/dict[str, object] with JSONObject, StrDict, or TypedDicts - Remove local variable annotations that triggered boundary_dict - Fix type: ignore comments by asserting non-None or using setattr - Extend typing_audit to emit file:line violations in human output

sha256:ca71d97bba51f0af457c8c984011b1d2f40c422e31112ad7286fc9d4f0121d72 sha
+20 ~34 −2 symbols
sha256:666c627e6ef465794a36ceca7fd1aaac8f182e1ddaddae27d44e225f6b2b2518 snapshot
+20
symbols added
~34
symbols modified
−2
symbols removed
0
dead code introduced
Semantic Changes 56 symbols
~ tests/conftest.py .py 1 symbol added, 1 symbol modified
+ _JobPayload variable variable _JobPayload L36–36
~ tests/test_background_jobs.py .py 2 symbols added, 2 symbols modified
+ _MsgpackInput variable variable _MsgpackInput L32–32
+ StrDict import import StrDict L29–29
~ _mp
~ tests/test_musehub_pagination.py .py 1 symbol added, 1 symbol modified
+ _IssueJson variable variable _IssueJson L20–20
~ tests/test_musehub_proposals_touched_symbols.py .py 4 symbols added, 1 symbol removed, 2 symbols modified
− Any import import Any L16–16
+ _ChildOp class class _ChildOp L41–44
+ _Delta class class _Delta L52–53
+ _DeltaOp class class _DeltaOp L47–49
+ TypedDict import import TypedDict L16–16
~ _delta
~ tests/test_pagination_section39.py .py 1 symbol added, 1 symbol modified
+ _IssueJson variable variable _IssueJson L35–35
~ tests/test_perf_push_pipeline.py .py 2 symbols added, 3 symbols modified
+ _MsgpackInput variable variable _MsgpackInput L40–40
+ StrDict import import StrDict L37–37
~ _mp
~ tests/test_storage_backends_section33.py .py 2 symbols added, 1 symbol removed, 3 symbols modified
− Any import import Any L37–37
+ _S3GetResponse class class _S3GetResponse L48–49
+ TypedDict import import TypedDict L37–37
~ tests/test_wire_compression.py .py 5 symbols added, 4 symbols modified
+ _DeltaObjectPayload class class _DeltaObjectPayload L50–55
+ _MsgpackInput variable variable _MsgpackInput L33–33
+ _RawObjectPayload class class _RawObjectPayload L36–40
+ _ZlibObjectPayload class class _ZlibObjectPayload L43–47
+ TypedDict import import TypedDict L28–28
~ _mp
~ tools/typing_audit.py .py 1 symbol added, 3 symbols modified
+ Violation class class Violation L75–80
~ Report

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:ca71d97bba51f0af457c8c984011b1d2f40c422e31112ad7286fc9d4f0121d72 --body "your comment"