|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## 0.0.20 |
| 4 | + |
| 5 | +Released on 2026-03-02. |
| 6 | + |
| 7 | +### Bug fixes |
| 8 | + |
| 9 | +- Fix bug where ty would think that a `Callable` with a variadic positional parameter could be a subtype of a `Callable` with a positional-or-keyword parameter ([#23610](https://github.com/astral-sh/ruff/pull/23610)) |
| 10 | +- Limit recursion depth when displaying self-referential function types ([#23647](https://github.com/astral-sh/ruff/pull/23647)) |
| 11 | + |
| 12 | +### LSP server |
| 13 | + |
| 14 | +- Add support for the LSP protocol's "type hierarchy" feature ([#23566](https://github.com/astral-sh/ruff/pull/23566)) |
| 15 | + |
| 16 | +### Other changes |
| 17 | + |
| 18 | +- Add more ParamSpec validation for `P.args` and `P.kwargs` ([#23640](https://github.com/astral-sh/ruff/pull/23640)) |
| 19 | +- Ban nested `Required`/`NotRequired`, and ban them both outside of `TypedDict` fields ([#23627](https://github.com/astral-sh/ruff/pull/23627)) |
| 20 | +- Bump cargo-dist to 0.31.0 ([#2920](https://github.com/astral-sh/ty/pull/2920)) |
| 21 | +- Dataclass transform: neither frozen nor non-frozen ([#23366](https://github.com/astral-sh/ruff/pull/23366)) |
| 22 | +- Detect inconsistent generic base class specializations ([#23615](https://github.com/astral-sh/ruff/pull/23615)) |
| 23 | +- Detect invalid uses of `@final` on non-methods ([#23604](https://github.com/astral-sh/ruff/pull/23604)) |
| 24 | +- Fix inference of `t.__mro__` if `t` is an instance of `type[Any]` ([#23632](https://github.com/astral-sh/ruff/pull/23632)) |
| 25 | +- Fix overloaded callable assignability for unary Callable targets ([#23277](https://github.com/astral-sh/ruff/pull/23277)) |
| 26 | +- Have `typing.Unpack[tuple[]]` behave more like `*tuple[]` ([#23651](https://github.com/astral-sh/ruff/pull/23651)) |
| 27 | +- Publish releases to Astral mirror ([#2921](https://github.com/astral-sh/ty/pull/2921)) |
| 28 | +- Recurse into tuples and nested tuples when applying special-cased validation of `isinstance()` and `issubclass()` ([#23607](https://github.com/astral-sh/ruff/pull/23607)) |
| 29 | +- Reject ellipsis literals in odd places in type/annotation expressions ([#23611](https://github.com/astral-sh/ruff/pull/23611)) |
| 30 | +- Reject functions with PEP-695 type parameters that shadow type parameters from enclosing scopes ([#23619](https://github.com/astral-sh/ruff/pull/23619)) |
| 31 | +- Reject generic metaclasses parameterized by type variables ([#23628](https://github.com/astral-sh/ruff/pull/23628)) |
| 32 | +- Sync vendored typeshed stubs ([#23642](https://github.com/astral-sh/ruff/pull/23642)) |
| 33 | +- Update the Python module (notably `find_ty_bin`) for parity with uv ([#2852](https://github.com/astral-sh/ty/pull/2852)) |
| 34 | +- Validate type variable defaults don't reference later type parameters or type parameters out of scope ([#23623](https://github.com/astral-sh/ruff/pull/23623)) |
| 35 | +- disallow negative narrowing on SubclassOf types ([#23598](https://github.com/astral-sh/ruff/pull/23598)) |
| 36 | +- fix binops with NewType of float and Unknown ([#23620](https://github.com/astral-sh/ruff/pull/23620)) |
| 37 | +- hash-cons `UseDefMap` fields ([#23283](https://github.com/astral-sh/ruff/pull/23283)) |
| 38 | +- make `StaticClassLiteral::explicit_bases` converge better in cycles ([#23601](https://github.com/astral-sh/ruff/pull/23601)) |
| 39 | + |
| 40 | +### Contributors |
| 41 | + |
| 42 | +- [@Hugo-Polloli](https://github.com/Hugo-Polloli) |
| 43 | +- [@zanieb](https://github.com/zanieb) |
| 44 | +- [@sharkdp](https://github.com/sharkdp) |
| 45 | +- [@mtshiba](https://github.com/mtshiba) |
| 46 | +- [@carljm](https://github.com/carljm) |
| 47 | +- [@charliermarsh](https://github.com/charliermarsh) |
| 48 | +- [@sinon](https://github.com/sinon) |
| 49 | +- [@BurntSushi](https://github.com/BurntSushi) |
| 50 | +- [@oconnor663](https://github.com/oconnor663) |
| 51 | +- [@AlexWaygood](https://github.com/AlexWaygood) |
| 52 | +- [@zsol](https://github.com/zsol) |
| 53 | + |
3 | 54 | ## 0.0.19 |
4 | 55 |
|
5 | 56 | Released on 2026-02-26. |
|
0 commit comments