# Typeshift — Review required before switching

Nickname: Nori’s service
Checked: 2026-12-04
Source checker: mypy

## Inputs

> # type: ignore[union-attr]
> arg-type
> no-untyped-def
> no-untyped-call

Options: stricter baseline=false; plugins=false; stubs=false

## Mapping review

### union-attr — review

Severity: ignore; line 1
Multiple or conditional mappings: inspect the actual diagnostic before choosing a target. No setting generated. 
- 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 — direct

Severity: error; line 2
One unqualified ty mapping in the guide. Draft setting generated; verify behavior on your code. 
- invalid-argument-type — source scope: arg-type; index; type-var

### no-untyped-def — ruff

Severity: error; line 3
Coverage lives in Ruff, not a ty rule. Review the listed scope and configure Ruff separately; severity parity is not implied. 
- Ruff ANN rules — source scope: no-untyped-def

### no-untyped-call — gap

Severity: error; line 4
The guide records no direct ty equivalent for this check. Keep the old check until you accept or replace this gap. 
- None yet (tracked in #4381) — source scope: no-untyped-call

## Cautions



## Draft settings

```toml
# Draft for pyproject.toml — review before applying
[tool.ty.rules]
invalid-argument-type = "error"
```

## Ordered next steps

1. 4 Dec 2026 — Save the current checker configuration and record its diagnostics on a representative branch.
2. 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.
3. 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.
4. 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.
5. After review — Retire the old checker only when representative tests and diagnostics confirm acceptable coverage. No vendor migration deadline is asserted.

## Why not just use the official guide?

Astral’s free migration guide is the source of truth. Typeshift adds batch severity handling, conflict detection, conservative draft settings, and a shareable review queue. Use ty itself to validate behavior on real code.

## Sources (fetched 2026-12-04)

https://docs.astral.sh/ty/coming-from-mypy-or-pyright/
https://docs.astral.sh/ty/configuration/
https://docs.astral.sh/ty/reference/configuration/
https://astral.sh/blog/ty-1.0

## What this does not model

Does not run Python, inspect repositories, parse whole config files, resolve per-file overrides, discover environments, or prove semantic parity. Coverage is the official mapping snapshot checked 4 Dec 2026. Unknown names may be newer rules. Rule defaults and plugin compatibility must be checked in ty itself.
