Skip to content

typing: Fix ty 0.0.87 errors - #830

Merged
ValerianRey merged 1 commit into
mainfrom
fix-ty-mutable-override
Oct 15, 2026
Merged

ValerianRey merged 1 commit into
mainfrom
fix-ty-mutable-override

Conversation

@ValerianRey

Copy link
Copy Markdown
Member

CI broke when ty went from 0.0.86 to 0.0.87:

  • New rule invalid-mutable-override flags every forward override, because nn.Module declares forward as a mutable Callable[..., Any] attribute. Disabled it in pyproject.toml.
  • cm.inferno_r (injected dynamically by matplotlib) is no longer resolved. Replaced with colormaps["inferno_r"].

🤖 Generated with Claude Code

- Ignore invalid-mutable-override, which flags every nn.Module.forward override.
- Use matplotlib.colormaps registry instead of the dynamic cm.inferno_r attribute.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ValerianRey ValerianRey added the cc: typing Conventional commit type for improvements to typing. label Oct 15, 2026
@github-actions github-actions Bot changed the title Fix ty 0.0.87 errors typing: Fix ty 0.0.87 errors Oct 15, 2026
@github-actions github-actions Bot changed the title Fix ty 0.0.87 errors typing: Fix ty 0.0.87 errors Oct 15, 2026
@ValerianRey
ValerianRey marked this pull request as ready for review October 15, 2026 12:46
@ValerianRey
ValerianRey requested a review from a team as a code owner October 15, 2026 12:46
@ValerianRey
ValerianRey merged commit 5ccd6e6 into main Oct 15, 2026
19 checks passed
@ValerianRey
ValerianRey deleted the fix-ty-mutable-override branch October 15, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: typing Conventional commit type for improvements to typing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant