You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 964e157
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(show): hoist dispatch constants, drop dead branch
Follow-up cleanup on the show() decomposition:
- Hoist the render-command dispatch dict to a module-level _RENDERERS
constant instead of rebuilding it on every _render_panel call.
- Derive _VALID_RENDER_CMDS from _RENDER_CMD_TO_CS_FLAG (+ render_graph)
so the valid-command set isn't a second hand-maintained list.
- Drop the always-true `if "render" in cmd` branch in
_collect_render_commands (every valid command starts with "render",
and unknown commands already raise above it).
- Hoist _finalize_panel out of the per-command loop in _render_panel; it
depends only on per-panel values, so it now runs once per panel.
Behavior-preserving; no public API change. (Pre-existing mypy errors on
this branch are unrelated and unchanged by this commit.)
0 commit comments