gabriel / muse public
chore BREAKING task/urllib-migration #1 / 3
AI Agent gabriel · 9 days ago · May 31, 2026 · Diff

chore: bump version to 0.2.0rc11; fix typing audit violations in muse and tests

- pyproject.toml: 0.2.0rc10 → 0.2.0rc11 - transport.py: bare_list → typed, _NoRedirectHandler.redirect_request typed - test files: all httpx-related mocks migrated to urllib, typing violations fixed - audit passes at zero ratchet: 0 violations, 0 untyped defs

sha256:0bea7600d1eee83e87950be49933b1006fa9dc2c71e7c4ee748d324f61138156 sha
+28 ~95 −42 symbols
sha256:bd2e9599b34110686a6374737078b04d6a62db750a181e60065b8810d23989af snapshot
+28
symbols added
~95
symbols modified
−42
symbols removed
0
dead code introduced
Semantic Changes 165 symbols
~ pyproject.toml .toml 2 symbols modified
~ tests/test_cmd_push_hardening.py .py 3 symbols added, 6 symbols removed, 10 symbols modified
_FakeHttpxClient class class _FakeHttpxClient L299–333
__aenter__ method async_method __aenter__ L305–306
__aexit__ method async_method __aexit__ L308–309
__init__ method method __init__ L302–303
post method async_method post L311–327
put method async_method put L329–333
+ push_mpack_presign method method push_mpack_presign L326–329
+ push_mpack_put method method push_mpack_put L331–333
+ push_mpack_unpack method method push_mpack_unpack L335–338
~ _run
~ tests/test_push_branch_have.py .py 1 symbol added, 2 symbols modified
~ tests/test_push_force_flag.py .py 7 symbols removed, 4 symbols modified
_FakeHttpxClient class class _FakeHttpxClient L110–140
__aenter__ method async_method __aenter__ L118–119
__aexit__ method async_method __aexit__ L121–122
__init__ method method __init__ L113–116
post method async_method post L124–136
put method async_method put L138–140
_unpack_body function function _unpack_body L183–186
~ tests/test_push_mpack_e2e.py .py 9 symbols added, 8 symbols removed, 9 symbols modified
_CapturingClient class class _CapturingClient L128–160
__aenter__ method async_method __aenter__ L138–139
__aexit__ method async_method __aexit__ L141–142
__init__ method method __init__ L131–136
post method async_method post L144–155
put method async_method put L157–160
_push_transport function function _push_transport L163–173
_unpack_body_of function function _unpack_body_of L190–194
+ _CapturingTransport class class _CapturingTransport L129–166
+ __init__ method method __init__ L132–138
+ _build_request method method _build_request L143–146
+ fetch_remote_info method method fetch_remote_info L140–141
+ push_mpack_presign method method push_mpack_presign L148–151
+ push_mpack_put method method push_mpack_put L153–155
+ push_mpack_unpack method method push_mpack_unpack L157–166
+ _unpack_kwargs function function _unpack_kwargs L179–182
+ SigningIdentity import import SigningIdentity L38–38
~ tests/test_transport_fetch_phase2.py .py 5 symbols added, 3 symbols removed, 6 symbols modified
_Resp class class _Resp L77–80
__init__ method method __init__ L78–80
_mock_client function function _mock_client L83–91
+ _DoFn class class _DoFn L80–82
+ __call__ method method __call__ L82–82
+ _mock_urllib_do function function _mock_urllib_do L85–104
+ Protocol import import Protocol L78–78
+ error import import urllib.error L77–77
~ tests/test_transport_push_mpack_presign.py .py 1 symbol added, 4 symbols removed, 6 symbols modified
_Resp class class _Resp L30–33
__init__ method method __init__ L31–33
_mock_client function function _mock_client L36–41
MagicMock import import MagicMock L11–11
+ _mock_urllib_do function function _mock_urllib_do L30–40
~ patch
~ tests/test_transport_push_mpack_put.py .py 4 symbols added, 4 symbols removed, 7 symbols modified
_Resp class class _Resp L26–29
__init__ method method __init__ L27–29
_mock_client function function _mock_client L32–37
MagicMock import import MagicMock L15–15
+ _SideEffectFn class class _SideEffectFn L23–25
+ __call__ method method __call__ L25–25
+ _mock_urllib_do function function _mock_urllib_do L32–42
+ Protocol import import Protocol L15–15
~ patch
~ tests/test_transport_push_mpack_unpack.py .py 1 symbol added, 5 symbols removed, 6 symbols modified
_JOB_ID variable variable _JOB_ID L24–24
_Resp class class _Resp L43–46
__init__ method method __init__ L44–46
_mock_client function function _mock_client L49–54
test_mu5_missing_job_id_raises_transport_error function function test_mu5_missing_job_id_raises_transport_error L129–137
+ _mock_urllib_do function function _mock_urllib_do L39–49

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