gabriel / muse public
fix BREAKING task/typing-audit-zero #1 / 3
AI Agent gabriel · 127 days ago · May 8, 2026 · Diff

fix: typing audit — zero pattern violations, zero untyped defs

- Delete dead split_object_into_oc_frames and its test file - Fix UnboundLocalError in test_integrity_I3_concurrent_race.py thread - Add _DomainEntry TypedDict in domain_cmd.py, _DomainSeed/_PathAnnotation in path_cmd.py - Replace dict[str,Any]/dict/dict[str,object] with TypedDict/Mapping throughout - Add -> None to all 59 test methods in test_migrate_domain_integers.py - Fix fixture param types and _flaky_register signature in test_migrate_domain_integers.py

sha256:a741a70c3da7bac0078dd7649554dc83362bc067db244de4627104e79821c3a7 sha
+11 ~103 −48 symbols
sha256:ad2deff360ca42401d0af935b5be582c6088f1d0df168b1461c07af2c747c2a8 snapshot
+11
symbols added
~103
symbols modified
−48
symbols removed
0
dead code introduced
Semantic Changes 162 symbols
~ tests/test_wire_oc_frames.py .py 36 symbols removed
TestP14B0ChunkSizeExported class class TestP14B0ChunkSizeExported L38–46
test_oc_chunk_size_equals_290kb method method test_oc_chunk_size_equals_290kb L44–46
test_oc_chunk_size_is_positive_int method method test_oc_chunk_size_is_positive_int L39–42
TestP14B1ExactSizeNoChunking class class TestP14B1ExactSizeNoChunking L53–80
test_object_at_chunk_size_is_single_o_frame method method test_object_at_chunk_size_is_single_o_frame L54–67
test_object_below_chunk_size_is_single_o_frame method method test_object_below_chunk_size_is_single_o_frame L69–80
TestP14B2TwoChunks class class TestP14B2TwoChunks L87–122
_get_frames method method _get_frames L88–98
test_all_frames_are_oc_type method method test_all_frames_are_oc_type L105–109
test_each_frame_content_le_chunk_size method method test_each_frame_content_le_chunk_size L111–115
test_frame_content_sums_to_original method method test_frame_content_sums_to_original L117–122
test_one_byte_over_chunk_size_produces_two_frames method method test_one_byte_over_chunk_size_produces_two_frames L100–103
TestP14B3ThreeChunks class class TestP14B3ThreeChunks L129–187
test_chunk_indices_are_sequential method method test_chunk_indices_are_sequential L174–187
test_three_chunk_size_object_produces_three_frames method method test_three_chunk_size_object_produces_three_frames L130–142
test_three_chunks_reassemble_correctly method method test_three_chunks_reassemble_correctly L144–157
test_total_chunks_field_is_correct method method test_total_chunks_field_is_correct L159–172
TestP14B4MetadataOnFirstChunkOnly class class TestP14B4MetadataOnFirstChunkOnly L194–234
_frames_for_large_object method method _frames_for_large_object L195–205
test_first_chunk_has_encoding method method test_first_chunk_has_encoding L207–209
test_first_chunk_has_path method method test_first_chunk_has_path L211–213
test_first_chunk_has_sz method method test_first_chunk_has_sz L215–219
test_subsequent_chunks_have_no_encoding method method test_subsequent_chunks_have_no_encoding L221–224
test_subsequent_chunks_have_no_path method method test_subsequent_chunks_have_no_path L226–229
test_subsequent_chunks_have_no_sz method method test_subsequent_chunks_have_no_sz L231–234
TestP14B5FunctionExported class class TestP14B5FunctionExported L241–257
test_function_is_callable method method test_function_is_callable L242–244
test_returns_list_of_dicts method method test_returns_list_of_dicts L246–257
TestP14B6FrameFields class class TestP14B6FrameFields L264–298
test_all_oc_frames_have_required_fields method method test_all_oc_frames_have_required_fields L265–283
test_last_frame_chunk_index_equals_total_minus_one method method test_last_frame_chunk_index_equals_total_minus_one L285–298
Any import import Any L27–27
annotations import import annotations L24–24
long_id import import long_id L31–31
math import import math L26–26
pytest import import pytest L29–29
~ muse/cli/commands/domain_cmd.py .py 2 symbols added, 1 symbol removed, 5 symbols modified
Any import import Any L65–65
+ _DomainEntry class class _DomainEntry L77–82
+ TypedDict import import TypedDict L65–65
~ muse/cli/commands/domains.py .py 1 symbol modified
~ muse/cli/commands/entangle.py .py 1 symbol modified
~ run
~ muse/cli/commands/hotspots.py .py 1 symbol modified
~ run
~ muse/cli/commands/log.py .py 1 symbol added, 1 symbol modified
+ Mapping import import Mapping L114–114
~ muse/cli/commands/migrate_cmd.py .py 2 symbols added, 1 symbol removed, 2 symbols modified
Any import import Any L54–54
+ Callable import import Callable L54–54
+ Mapping import import Mapping L54–54
~ muse/cli/commands/path_cmd.py .py 3 symbols added, 1 symbol removed, 2 symbols modified
Any import import Any L41–41
+ _DomainSeed class class _DomainSeed L55–57
+ _PathAnnotation class class _PathAnnotation L116–128
+ TypedDict import import TypedDict L41–41
~ muse/cli/commands/social.py .py 1 symbol added, 5 symbols modified
+ Mapping import import Mapping L36–36
~ muse/core/domain_migration.py .py 1 symbol added, 2 symbols modified
+ Mapping import import Mapping L36–36
~ muse/core/transport.py .py 1 symbol removed
split_object_into_oc_frames function function split_object_into_oc_frames L255–300
~ tests/test_core_transport.py .py 8 symbols removed, 7 symbols modified
TestSplitObjectIntoOcFrames class class TestSplitObjectIntoOcFrames L579–650
_make_obj method method _make_obj L587–601
test_chunked_object_first_chunk_uses_enc method method test_chunked_object_first_chunk_uses_enc L640–650
test_delta_object_uses_base_not_base_id method method test_delta_object_uses_base_not_base_id L621–631
test_raw_object_no_base_field method method test_raw_object_no_base_field L633–638
test_raw_object_uses_enc_not_encoding method method test_raw_object_uses_enc_not_encoding L613–619
test_raw_object_uses_id_not_object_id method method test_raw_object_uses_id_not_object_id L603–611
split_object_into_oc_frames import import split_object_into_oc_frames L18–18
~ tests/test_migrate_domain_integers.py .py 1 symbol added, 73 symbols modified
+ Mapping import import Mapping L37–37

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:a741a70c3da7bac0078dd7649554dc83362bc067db244de4627104e79821c3a7 --body "your comment"