gabriel / muse public
chore BREAKING task/type-audit #1 / 1
AI Agent gabriel · 144 days ago · Apr 27, 2026 · Diff

chore: type audit — zero Any/untyped violations; fix mnemonic-display test alignment

- bridge.py: TypedDicts (GitCommitInfo, GitTagInfo, _SidecarData, DriftInfo) and named aliases (SnapshotManifest, FileDiffTree) to replace dict[str, Any] boundaries - store.py: remove annotated local that triggered bare_dict rule - rebase.py: **kwargs: object → **kwargs: str - pyproject.toml: register 'timeout' pytest mark to silence PytestUnknownMarkWarning - init.py: always emit [remotes] header in config.toml even without a handle - test_core_graph.py: bypass write_commit parent-guard via direct msgpack write - test_cmd_auth_keygen_register.py: fix mock responses camelCase → snake_case - tests: update mnemonic assertions to keychain-only model (never printed to terminal) - tests: add ssl.SSLContext context param to all mock urlopen functions

sha256:b2923b68ef826f6f76b4cfe7c7925c762b1115fbefe3565c2bb71829cc24c58d sha
+49 ~160 −5 symbols
sha256:3256903142f5f6ab96bcc4c80a9430c2eaeb14d8e6f6be90f2a43a88eedfdb39 snapshot
+49
symbols added
~160
symbols modified
−5
symbols removed
0
dead code introduced
Semantic Changes 214 symbols
+ .cursorrules .cursorrules
~ muse/cli/commands/bridge.py .py 6 symbols added, 16 symbols modified
+ DriftInfo class class DriftInfo L156–160
+ FileDiffTree variable variable FileDiffTree L164–164
+ GitCommitInfo class class GitCommitInfo L128–138
+ GitTagInfo class class GitTagInfo L141–146
+ SnapshotManifest variable variable SnapshotManifest L163–163
+ _SidecarData class class _SidecarData L149–153
~ muse/core/rebase.py .py 1 symbol modified
~ muse/core/store.py .py 1 symbol modified
~ pyproject.toml .toml 4 symbols modified
~ tests/test_auth_keygen_mnemonic_guard.py .py 2 symbols added, 6 symbols modified
~ tests/test_auth_logout_keygen_integrity.py .py 4 symbols added, 4 symbols modified
+ _ChallengeResp variable variable _ChallengeResp L32–32
+ _KcDict variable variable _KcDict L31–31
+ _VerifyResp variable variable _VerifyResp L33–33
+ Mapping import import Mapping L22–22
~ tests/test_auth_mnemonic_display.py .py 3 symbols added, 3 symbols removed, 1 symbol modified
TestTtyMnemonicDisplayed class class TestTtyMnemonicDisplayed L139–175
test_II1_full_mnemonic_in_output method method test_II1_full_mnemonic_in_output L140–148
test_II2_displayed_mnemonic_is_valid_bip39 method method test_II2_displayed_mnemonic_is_valid_bip39 L150–164
+ TestTtyMnemonicNeverDisplayed class class TestTtyMnemonicNeverDisplayed L139–178
+ test_II1_mnemonic_not_in_tty_output method method test_II1_mnemonic_not_in_tty_output L140–155
+ test_II2_backup_instructions_shown_on_tty method method test_II2_backup_instructions_shown_on_tty L157–167
~ tests/test_auth_rotate.py .py 3 symbols added, 5 symbols modified
+ _JsonResp variable variable _JsonResp L74–74
+ Mapping import import Mapping L65–65
+ ssl import import ssl L64–64
~ tests/test_bridge_git_export.py .py 1 symbol added, 1 symbol modified
+ Mapping import import Mapping L27–27
~ tests/test_bridge_git_status.py .py 1 symbol added, 1 symbol modified
+ BridgeState import import BridgeState L19–19
~ tests/test_bridge_phase1.py .py 1 symbol added, 4 symbols modified
+ BridgeState import import BridgeState L27–27
~ tests/test_bridge_roundtrip.py .py 3 symbols added, 3 symbols modified
+ _ShaMap variable variable _ShaMap L46–46
+ _StrEnv variable variable _StrEnv L45–45
+ Mapping import import Mapping L39–39
~ tests/test_cmd_auth_hardening.py .py 1 symbol added, 2 symbols modified
+ ssl import import ssl L38–38
~ tests/test_cmd_gc_hardening.py .py 1 symbol added, 1 symbol modified
+ Mapping import import Mapping L61–61
~ tests/test_cmd_init.py .py 1 symbol added, 2 symbols modified
+ Mapping import import Mapping L19–19
~ tests/test_code_migrate.py .py 2 symbols added, 3 symbols modified
+ Ed25519PrivateKey import import Ed25519PrivateKey L40–40
+ SigningIdentity import import SigningIdentity L42–42
~ tests/test_commit_concurrent_ref_safety.py .py 1 symbol added, 2 symbols modified
+ InvokeResult import import InvokeResult L34–34
~ _try
~ tests/test_core_gc.py .py 1 symbol added, 1 symbol modified
+ Mapping import import Mapping L8–8
~ tests/test_core_graph.py .py 2 symbols added, 6 symbols modified
+ commit_path import import commit_path L44–44
+ msgpack import import msgpack L43–43
~ tests/test_core_paths_init_repo_dirs.py .py 1 symbol added, 2 symbols modified
+ Callable import import Callable L19–19
~ tests/test_gc_full.py .py 1 symbol added, 1 symbol modified
+ Mapping import import Mapping L69–69
~ tests/test_gc_path_helpers_and_remote_refs.py .py 1 symbol added, 1 symbol modified
+ _EnvDict variable variable _EnvDict L41–41
~ _env
~ tests/test_object_store_write_taxonomy.py .py 1 symbol added, 1 symbol modified
+ Mapping import import Mapping L45–45
~ tests/test_phase5_stage_preserved_on_failure.py .py 2 symbols added, 2 symbols modified
+ MagicMock import import MagicMock L24–24
+ contextlib import import contextlib L21–21
~ patch
~ tests/test_phase6_checkout_interruption.py .py 1 symbol added, 3 symbols modified
~ tests/test_push_force_delta.py .py 2 symbols added, 3 symbols modified
+ MagicMock import import MagicMock L52–52
+ Mapping import import Mapping L51–51
~ tests/test_shelf_msgpack_storage.py .py 1 symbol added, 1 symbol removed, 4 symbols modified
Any import import Any L47–47
+ _ShelfDict variable variable _ShelfDict L54–54
← Older Oldest on task/type-audit
All commits
Newer → Latest on task/type-audit

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