Skip to content

build(deps): bump ty to 0.0.100 - #41

Merged
darylalim merged 1 commit into
mainfrom
deps/ty-0.0.100
Nov 10, 2026
Merged

darylalim merged 1 commit into
mainfrom
deps/ty-0.0.100

Conversation

@darylalim

Copy link
Copy Markdown
Owner

Step 4b, the last step of the dependency refresh: ty 0.0.83 → 0.0.100. ty is pre-1.0 and changes rules in patch releases, so this is its own reviewable change (CLAUDE.md, Commands).

What 0.0.84–0.0.100 changes for us

Under 0.0.100, ty check reported 6 warnings, and ty check fails on any warning.

  • Five ignore comments use a renamed rule. unresolved-attribute is now missing-attribute, and since 0.0.98 an old name in a # ty: ignore[...] raises renamed-rule-in-ignore-comment. The five comments are renamed (in test_charts.py, test_chunk.py and test_models.py).
  • One unused ignore. ty now accepts the per-instance exec_module patch in eval/s10_hook/sitecustomize.py. The ignore is dropped, and the line keeps its explanatory comment. test_s10_check.py executes the hook, and it passes.

Rule defaults, diffed

I compared ty explain rule's Default level: lines for 0.0.83 (136 rules) and 0.0.100 (150 rules). Every difference is one of these:

  • A rename or split: unresolved-import → import-not-found, invalid-*-override → incompatible-*-override, invalid-overload and invalid-key split into finer rules, unresolved-attribute → missing-attribute and missing-union-attribute.
  • A new rule on by default: for example abstract-class-instantiation and lost-keyword-for-regular-parameter.
  • A new rule off by default: mismatched-sentinel-name and truthiness-test-of-none-union.

One narrowing: invalid-legacy-positional-parameter moved from warn to ignore (0.0.84). It stays off. It checks only the pre-PEP 570 __name positional-only convention, which this Python 3.12 code never uses, and enabling it finds nothing here. That is unlike ruff 0.17's dropped DTZ rules (#40), which guard real bugs.

Docs

CLAUDE.md now records the renames and the narrowing, and says to diff ty explain rule's default levels on every ty upgrade.

Verification

  • GATE_FORCE=1 ./scripts/gate.sh passes.
  • No eval: ty is not on any model path.

🤖 Generated with Claude Code

ty renamed unresolved-attribute to missing-attribute and now warns on
the old name in ignore comments, so the five such comments are renamed.
The ignore in the S10 hook's loader patch is no longer needed.

The only rule whose default moved toward ignore is
invalid-legacy-positional-parameter (warn -> ignore, 0.0.84); it is left
off because it checks only the pre-PEP 570 __name convention, which this
code never uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@darylalim
darylalim merged commit 049b35e into main Nov 10, 2026
2 checks passed
@darylalim
darylalim deleted the deps/ty-0.0.100 branch November 10, 2026 23:30
@darylalim darylalim mentioned this pull request Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant