Skip to content

Commit c452e53

Browse files
sharkdpAlexWaygood
andauthored
Bump version to 0.0.1-alpha.16 (#890)
Changes which I chose not to include; let me know if one of these should be added: ``` - Add warning for unknown `TY_MEMORY_REPORT` value ([#19465](astral-sh/ruff#19465)) - Add goto definition to playground ([#19425](astral-sh/ruff#19425)) - Added support for "go to references" in ty playground. ([#19516](astral-sh/ruff#19516)) - Fall back to `Unknown` if no type is stored for an expression ([#19517](astral-sh/ruff#19517)) - Make `Module` a Salsa ingredient ([#19495](astral-sh/ruff#19495)) - Return a tuple spec from the iterator protocol ([#19496](astral-sh/ruff#19496)) ``` --------- Co-authored-by: Alex Waygood <[email protected]>
1 parent 326db79 commit c452e53

File tree

6 files changed

+153
-66
lines changed

6 files changed

+153
-66
lines changed

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,67 @@
11
# Changelog
22

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+
365
## 0.0.1-alpha.15
466

567
### Bug fixes

dist-workspace.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22
members = ["cargo:./ruff"]
33
packages = ["ty"]
4-
version = "0.0.1-alpha.15"
4+
version = "0.0.1-alpha.16"
55

66
# Config for 'dist'
77
[dist]

0 commit comments

Comments
 (0)