Esta es una versión anterior. La versión actual es 0.0.98. ty 0.0.98 · Fecha de publicación:
Archivos de instalación 0.0.93
| Arquitectura | Tipo | Ámbito | Tamaño del archivo | Descargar | SHA256 |
|---|---|---|---|---|---|
| 64 bits | ZIP → Portable | — | — | github.com | VirusTotal |
| ARM64 | ZIP → Portable | — | — | github.com | VirusTotal |
| 32 bits | ZIP → Portable | — | — | github.com | VirusTotal |
El enlace y el SHA256 proceden del manifiesto comunitario del Administrador de paquetes de Windows. Conviene comparar el hash del archivo descargado antes de ejecutarlo.
Notas de la versión
Preview features
- Add diagnostic baselines to help adopt ty in projects with existing errors (#27636). Configure a baseline in pyproject.toml:
[tool.ty]
baseline = "ty-baseline.json"
Run ty check --update-baseline to record existing diagnostics. Subsequent checks filter matching diagnostics from CLI output and show them as hints in the language server. The baseline format may change while the feature is in preview.
Bug fixes
- Fix a panic when checking truthiness in a loop (#29759)
- Fix hang when negating recursive unions of instance types (#29652)
Core type checking
- Avoid synthesizing primary keys for abstract Django models (#29744)
- Combine constraints from repeated ParamSpecs (#29172)
- Fix narrowing of strings and integers compared with enum members (#29743)
- Honor @override on overload implementations in stubs (#29470)
- Preserve caller type variables in nested union inference (#29611)
- Preserve generic callback specializations during return refinement (#29667)
- Preserve mapping capture types on narrowed subjects (#29749)
- Preserve narrowing after guarded match subject captures (#29558)
- Preserve string literals in comparisons with LiteralString (#29741)
- Remove covered exclusions from unions (#29615)
Performance
- Avoid replaying conditions in long boolean expressions (#29754)
- Index nominal union alternatives (#29196)
- Normalize runtime unions on demand (#29727)
- Optimize Linux x86-64 ty releases with LLVM BOLT (#4833)
- Record predicate truthiness alongside expression inference (#29706)
- Reuse exception checkpoints when a new place is read (#29750)
- Reuse runtime operands in eager union annotations (#29770)
- Reuse tuple pattern analysis work (#29197)
- Skip predicates that cannot affect narrowing (#29736)
- Speed up match narrowing over large unions (#29733)
Contributors
- @MichaReiser
- @sharkdp
- @dhruvmanila
- @charliermarsh
- @carljm