Skip to content

Commit 3ececb0

Browse files
AlexWaygoodsharkdp
andauthored
Bump version to 0.0.1-alpha.14 (#778)
Co-authored-by: David Peter <[email protected]>
1 parent 21886e5 commit 3ececb0

File tree

6 files changed

+49
-4
lines changed

6 files changed

+49
-4
lines changed

CHANGELOG.md

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

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+
347
## 0.0.1-alpha.13
448

549
### 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.13"
4+
version = "0.0.1-alpha.14"
55

66
# Config for 'dist'
77
[dist]

docs/reference/configuration.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ty"
3-
version = "0.0.1a13"
3+
version = "0.0.1a14"
44
requires-python = ">=3.8"
55
dependencies = []
66
description = "An extremely fast Python type checker, written in Rust."

ruff

Submodule ruff updated 232 files

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)