|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## 0.0.1-alpha.16 |
| 4 | + |
| 5 | +### Bug fixes |
| 6 | + |
| 7 | +- Fix server panics when hovering over invalid syntax in `Callable` annotations ([#19517](https://github.com/astral-sh/ruff/pull/19517)) |
| 8 | +- `match` statements: Fix narrowing and reachability of class patterns with arguments ([#19512](https://github.com/astral-sh/ruff/pull/19512)) |
| 9 | +- Fix server panics when hovering over illegal `Literal[…]` annotations with inner subscript expressions ([#19489](https://github.com/astral-sh/ruff/pull/19489)) |
| 10 | +- Pass down specialization to generic dataclass bases ([#19472](https://github.com/astral-sh/ruff/pull/19472)) |
| 11 | + |
| 12 | +### Server |
| 13 | + |
| 14 | +- Add support for "go to definition" for attribute accesses and keyword arguments ([#19417](https://github.com/astral-sh/ruff/pull/19417)) |
| 15 | +- Add support for "go to definition" for import statements ([#19428](https://github.com/astral-sh/ruff/pull/19428)) |
| 16 | +- Add support for "document highlights" ([#19515](https://github.com/astral-sh/ruff/pull/19515)) |
| 17 | +- Add partial support for "find references" ([#19475](https://github.com/astral-sh/ruff/pull/19475)) |
| 18 | +- Prefer the runtime definition, not the stub definition, on a go-to-definition request for a class or function. Currently this is only implemented for definitions originating outside of the stdlib. ([#19471](https://github.com/astral-sh/ruff/pull/19471)) |
| 19 | +- Add [semantic token](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_semanticTokens) support for more identifiers ([#19473](https://github.com/astral-sh/ruff/pull/19473)) |
| 20 | +- Avoid rechecking the entire project when a file in the editor is opened or closed ([#19463](https://github.com/astral-sh/ruff/pull/19463)) |
| 21 | + |
| 22 | +### Typing semantics and features |
| 23 | + |
| 24 | +- Handle splatted arguments in function calls ([#18996](https://github.com/astral-sh/ruff/pull/18996)) |
| 25 | +- Improve place lookup and narrowing in lazy scopes ([#19321](https://github.com/astral-sh/ruff/pull/19321)) |
| 26 | +- Add exhaustiveness checking and reachability analysis for `match` statements ([#19508](https://github.com/astral-sh/ruff/pull/19508)) |
| 27 | +- Improve reachability analysis for `isinstance(…)` branches ([#19503](https://github.com/astral-sh/ruff/pull/19503)) |
| 28 | +- Make tuple subclass constructors sound ([#19469](https://github.com/astral-sh/ruff/pull/19469)) |
| 29 | +- Extend tuple `__len__` and `__bool__` special casing to also cover tuple subclasses ([#19289](https://github.com/astral-sh/ruff/pull/19289)) |
| 30 | +- Add support for `dataclasses.field` ([#19553](https://github.com/astral-sh/ruff/pull/19553)) |
| 31 | +- Add support for `dataclasses.InitVar` ([#19527](https://github.com/astral-sh/ruff/pull/19527)) |
| 32 | +- Add support for `@warnings.deprecated` and `typing_extensions.deprecated` ([#19376](https://github.com/astral-sh/ruff/pull/19376)) |
| 33 | +- Do not consider a type `T` to satisfy a method member on a protocol unless the method is available on the meta-type of `T` ([#19187](https://github.com/astral-sh/ruff/pull/19187)) |
| 34 | +- Implement expansion of enums into unions of literals ([#19382](https://github.com/astral-sh/ruff/pull/19382)) |
| 35 | +- Support iterating over enums ([#19486](https://github.com/astral-sh/ruff/pull/19486)) |
| 36 | +- Detect enums if metaclass is a subtype of `EnumType` / `EnumMeta` ([#19481](https://github.com/astral-sh/ruff/pull/19481)) |
| 37 | +- Infer single-valuedness for enums deriving from `int` or `str` ([#19510](https://github.com/astral-sh/ruff/pull/19510)) |
| 38 | +- Detect illegal non-enum attribute accesses in `Literal` annotations ([#19477](https://github.com/astral-sh/ruff/pull/19477)) |
| 39 | +- Disallow assignment to `Final` class attributes ([#19457](https://github.com/astral-sh/ruff/pull/19457)) |
| 40 | +- Handle implicit instance attributes declared `Final` ([#19462](https://github.com/astral-sh/ruff/pull/19462)) |
| 41 | +- Disallow `Final` in function parameter- and return-type annotations ([#19480](https://github.com/astral-sh/ruff/pull/19480)) |
| 42 | +- Disallow illegal uses of `ClassVar` ([#19483](https://github.com/astral-sh/ruff/pull/19483)) |
| 43 | +- Make `del x` force a local resolution of `x` in the current scope ([#19389](https://github.com/astral-sh/ruff/pull/19389)) |
| 44 | +- Perform type narrowing for places marked `global` ([#19381](https://github.com/astral-sh/ruff/pull/19381)) |
| 45 | +- Infer correct types for attribute accesses on intersections with negative parts ([#19524](https://github.com/astral-sh/ruff/pull/19524)) |
| 46 | +- Sync vendored typeshed stubs ([typeshed diff](https://github.com/python/typeshed/compare/84e41f2853d7af3d651d620f093031cba849bd1d...08225953c98cfd375d80bc88865e5aae77d2c07f)) |
| 47 | + |
| 48 | +### Memory usage optimizations |
| 49 | + |
| 50 | +- Reduce ty's memory usage (for example: [#19409](https://github.com/astral-sh/ruff/pull/19409), [#19435](https://github.com/astral-sh/ruff/pull/19435), [#19414](https://github.com/astral-sh/ruff/pull/19414)) |
| 51 | + |
| 52 | +### Contributors |
| 53 | + |
| 54 | +- [@sharkdp](https://github.com/sharkdp) |
| 55 | +- [@BurntSushi](https://github.com/BurntSushi) |
| 56 | +- [@oconnor663](https://github.com/oconnor663) |
| 57 | +- [@Gankra](https://github.com/Gankra) |
| 58 | +- [@carljm](https://github.com/carljm) |
| 59 | +- [@AlexWaygood](https://github.com/AlexWaygood) |
| 60 | +- [@MichaReiser](https://github.com/MichaReiser) |
| 61 | +- [@dcreager](https://github.com/dcreager) |
| 62 | +- [@mtshiba](https://github.com/mtshiba) |
| 63 | +- [@UnboundVariable](https://github.com/UnboundVariable) |
| 64 | + |
3 | 65 | ## 0.0.1-alpha.15
|
4 | 66 |
|
5 | 67 | ### Bug fixes
|
|
0 commit comments