|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.0.1-alpha.14 |
| 4 | + |
| 5 | +### Bug fixes |
| 6 | + |
| 7 | +- Add cycle detection to ty's implementation of disjointness between types, fixing a possible source of stack overflows when analysing recursive types ([#19139](https://github.com/astral-sh/ruff/pull/19139)) |
| 8 | +- Don't allow first-party code to shadow the stdlib `types` module ([#19128](https://github.com/astral-sh/ruff/pull/19128)). |
| 9 | + This fixes another possible source of stack overflows. |
| 10 | +- Fix descriptor lookups for most types that overlap with `None` ([#19120](https://github.com/astral-sh/ruff/pull/19120)). |
| 11 | + This means that e.g. `object().__str__()` now correctly binds the `self` argument of the `__str__` |
| 12 | + method, as the `object` type overlaps with `None`. |
| 13 | + |
| 14 | +### Server |
| 15 | + |
| 16 | +- Filter a symbol from a stub file in autocomplete suggestions if it is an implementation detail of the stub ([#19121](https://github.com/astral-sh/ruff/pull/19121)) |
| 17 | +- Add initial support for [semantic tokens](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens) ([#19108](https://github.com/astral-sh/ruff/pull/19108)). |
| 18 | + This feature allows editors to apply more advanced syntax highlighting. Currently, the supported tokens are: `Namespace`, `Class`, `Parameter`, `SelfParameter`,`ClsParameter`, `Variable`, `Property`, `Function`, `Method`, `Keyword`, `String`, `Number`, `Decorator`, `BuiltinConstant` and `TypeParameter`. |
| 19 | +- Initial support for [workspace diagnostics](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_diagnostic) ([#18939](https://github.com/astral-sh/ruff/pull/18939)). |
| 20 | + Enable this feature by setting the `ty.diagnosticMode` configuration setting to `"workspace"`. |
| 21 | +- Use Python syntax highlighting in on-hover content ([#19082](https://github.com/astral-sh/ruff/pull/19082)) |
| 22 | + |
| 23 | +### Typing semantics and features |
| 24 | + |
| 25 | +- Understand that calls to functions returning `Never` / `NoReturn` are terminal with respect to control flow ([#18333](https://github.com/astral-sh/ruff/pull/18333)) |
| 26 | +- Add subtyping between `type[]` types and `Callable` types ([#19026](https://github.com/astral-sh/ruff/pull/19026)) |
| 27 | +- Support bare `ClassVar` annotations ([#15768](https://github.com/astral-sh/ruff/pull/15768)) |
| 28 | +- Understand that two protocols with equivalent method members are equivalent ([#18659](https://github.com/astral-sh/ruff/pull/18659)) |
| 29 | +- Support declared-only instance attributes such as `self.x: int` ([#19048](https://github.com/astral-sh/ruff/pull/19048)) |
| 30 | +- Sync vendored typeshed stubs ([#19174](https://github.com/astral-sh/ruff/pull/19174)): [typeshed diff](https://github.com/python/typeshed/compare/3f727b0cd6620b7fca45318dd34542b1e1c7dbfb...f64707592dd3c32f756ddeebd012acb2b072aa0d) |
| 31 | +- Use the inferred type as the declared type for bare `Final` symbols ([#19142](https://github.com/astral-sh/ruff/pull/19142)) |
| 32 | + |
| 33 | +### Contributors |
| 34 | + |
| 35 | +- [@iyakushev](https://github.com/iyakushev) |
| 36 | +- [@MatthewMckee4](https://github.com/MatthewMckee4) |
| 37 | +- [@zanieb](https://github.com/zanieb) |
| 38 | +- [@sharkdp](https://github.com/sharkdp) |
| 39 | +- [@UnboundVariable](https://github.com/UnboundVariable) |
| 40 | +- [@abhijeetbodas2001](https://github.com/abhijeetbodas2001) |
| 41 | +- [@github-actions](https://github.com/github-actions) |
| 42 | +- [@dhruvmanila](https://github.com/dhruvmanila) |
| 43 | +- [@AlexWaygood](https://github.com/AlexWaygood) |
| 44 | +- [@carljm](https://github.com/carljm) |
| 45 | +- [@CodeMan62](https://github.com/CodeMan62) |
| 46 | + |
3 | 47 | ## 0.0.1-alpha.13
|
4 | 48 |
|
5 | 49 | ### Bug fixes
|
|
0 commit comments