Repository navigation
Add type annotations to client.dynamic.Dispatch. - #1022
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137jz1XbSeuomn8S7nSE9k6
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1022 +/- ##
==========================================
+ Coverage 92.62% 92.63% +0.01%
==========================================
Files 154 154
Lines 16870 16881 +11
==========================================
+ Hits 15626 15638 +12
+ Misses 1244 1243 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0137jz1XbSeuomn8S7nSE9k6
|
Thanks for the review. I dropped |
junkmd
left a comment
There was a problem hiding this comment.
Thank you for taking an interest in static typing here!
Discussions around static typing policies have been pretty rare in this project so far.
Knowing "you're not alone in what you care about" means a lot to maintainers and helps prevent burnout.
Closes #447
Adds type annotations to
client.dynamic.Dispatchusing overloads: a_Dispatchis returned as is, anIDispatchpointer yields a_Dispatchor alazybind.Dispatch, and any other object is returned unchanged. No runtime behaviour changes (the implementation only gains acastfor the type checker).Checked:
ruff format --checkpasses;pyright --pythonplatform Windows ./reports one error fewer than before the change (542 -> 541) and none indynamic.py. I did not run the unittest suite on Windows for this change.AI assistance: drafted with Claude; I reviewed the diff myself.