Review required before switching
Nori’s service · mypy → ty · 4 unique diagnostics
These are configuration mappings, not a pass/fail result for your Python code. “Direct” means one unqualified row in the guide.
1. Work through the mappings
union-attr
reviewRequested severity: ignore · line scope · input line 1
Multiple or conditional mappings: inspect the actual diagnostic before choosing a target. No setting generated.
4 official mapping rows — retain these qualifiers
- invalid-context-manager
Source scope: misc; attr-defined; union-attr - missing-attribute
Source scope: attr-defined; union-attr (attribute missing from every union member) - missing-union-attribute
Source scope: union-attr - not-iterable
Source scope: misc; attr-defined; union-attr
arg-type
directRequested severity: error · global scope · input line 2
One unqualified ty mapping in the guide. Draft setting generated; verify behavior on your code.
1 official mapping row — retain these qualifiers
- invalid-argument-type
Source scope: arg-type; index; type-var
no-untyped-def
ruffRequested severity: error · global scope · input line 3
Coverage lives in Ruff, not a ty rule. Review the listed scope and configure Ruff separately; severity parity is not implied.
1 official mapping row — retain these qualifiers
- Ruff ANN rules
Source scope: no-untyped-def
no-untyped-call
gapRequested severity: error · global scope · input line 4
The guide records no direct ty equivalent for this check. Keep the old check until you accept or replace this gap.
1 official mapping row — retain these qualifiers
- None yet (tracked in #4381)
Source scope: no-untyped-call
2. Review the draft settings
Only direct, non-conflicting global mappings are included. Line-scoped ignores stay in the review above. Split, conditional, Ruff, unknown, and missing-equivalent mappings stay out. An ignore setting still suppresses diagnostics; inspect it before applying.
# Draft for pyproject.toml — review before applying
[tool.ty.rules]
invalid-argument-type = "error"3. Next steps, in order
- 4 Dec 2026 — Save the current checker configuration and record its diagnostics on a representative branch.
- Before switching — Resolve 1 review cases, 1 coverage gaps, 0 unknown codes, and 1 Ruff hand-offs. Do not replace a broad ignore with all candidate rules.
- Before the trial — Merge draft settings into the existing table, not a duplicate TOML table. A same-directory ty.toml overrides [tool.ty] in pyproject.toml; CLI settings override persistent configuration.
- During the trial — Run ty check alongside the existing checker. ty checks unannotated function bodies unconditionally. Audit stubs, plugins, and inline ignores; this tool does not rewrite code.
- After review — Retire the old checker only when representative tests and diagnostics confirm acceptable coverage. No vendor migration deadline is asserted.