mirror of
https://github.com/astral-sh/ty.git
synced 2026-05-06 08:56:48 -04:00
Bump version to 0.0.8 (#2256)
This commit is contained in:
@@ -1,5 +1,44 @@
|
||||
# Changelog
|
||||
|
||||
## 0.0.8
|
||||
|
||||
Released on 2025-12-29.
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- Rename `non-subscriptable` rule to `not-subscriptable` ([#22193](https://github.com/astral-sh/ruff/pull/22193))
|
||||
|
||||
### Core type checking
|
||||
|
||||
- Promote float and complex when promoting literals ([#22215](https://github.com/astral-sh/ruff/pull/22215))
|
||||
- Callable type of a type object is not function-like ([#22226](https://github.com/astral-sh/ruff/pull/22226))
|
||||
- Fix and simplify callable type materializations ([#22213](https://github.com/astral-sh/ruff/pull/22213))
|
||||
|
||||
### LSP server
|
||||
|
||||
- Add option to disable syntax errors ([#22217](https://github.com/astral-sh/ruff/pull/22217))
|
||||
- Fix completion in decorators with missing declaration ([#22177](https://github.com/astral-sh/ruff/pull/22177))
|
||||
- Better completions context detection when typing in decorator positions ([#22224](https://github.com/astral-sh/ruff/pull/22224))
|
||||
- Limit the returned completions to reduce lag ([#22240](https://github.com/astral-sh/ruff/pull/22240))
|
||||
|
||||
### Diagnostics
|
||||
|
||||
- Improve wording of `unsupported-base` sub-diagnostic ([#22194](https://github.com/astral-sh/ruff/pull/22194))
|
||||
- Preserve the invalid assignment diagnostic message when implicitly shadowing a definition ([#22219](https://github.com/astral-sh/ruff/pull/22219))
|
||||
|
||||
### Other changes
|
||||
|
||||
- Update docker image to use alpine 3.23 and trixie ([#2217](https://github.com/astral-sh/ty/pull/2217))
|
||||
|
||||
### Contributors
|
||||
|
||||
- [@RasmusNygren](https://github.com/RasmusNygren)
|
||||
- [@samypr100](https://github.com/samypr100)
|
||||
- [@silamon](https://github.com/silamon)
|
||||
- [@carljm](https://github.com/carljm)
|
||||
- [@MichaReiser](https://github.com/MichaReiser)
|
||||
- [@MatthewMckee4](https://github.com/MatthewMckee4)
|
||||
|
||||
## 0.0.7
|
||||
|
||||
Released on 2025-12-24.
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[workspace]
|
||||
members = ["cargo:./ruff"]
|
||||
packages = ["ty"]
|
||||
version = "0.0.7"
|
||||
version = "0.0.8"
|
||||
|
||||
# Config for 'dist'
|
||||
[dist]
|
||||
|
||||
@@ -71,7 +71,7 @@ ty includes a standalone installer.
|
||||
Request a specific version by including it in the URL:
|
||||
|
||||
```console
|
||||
$ curl -LsSf https://astral.sh/ty/0.0.7/install.sh | sh
|
||||
$ curl -LsSf https://astral.sh/ty/0.0.8/install.sh | sh
|
||||
```
|
||||
|
||||
=== "Windows"
|
||||
@@ -87,7 +87,7 @@ ty includes a standalone installer.
|
||||
Request a specific version by including it in the URL:
|
||||
|
||||
```pwsh-session
|
||||
PS> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/ty/0.0.7/install.ps1 | iex"
|
||||
PS> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/ty/0.0.8/install.ps1 | iex"
|
||||
```
|
||||
|
||||
!!! tip
|
||||
@@ -149,7 +149,7 @@ COPY --from=ghcr.io/astral-sh/ty:latest /ty /bin/
|
||||
The following tags are available:
|
||||
|
||||
- `ghcr.io/astral-sh/ty:latest`
|
||||
- `ghcr.io/astral-sh/ty:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/ty:0.0.7`
|
||||
- `ghcr.io/astral-sh/ty:{major}.{minor}.{patch}`, e.g., `ghcr.io/astral-sh/ty:0.0.8`
|
||||
- `ghcr.io/astral-sh/ty:{major}.{minor}`, e.g., `ghcr.io/astral-sh/ty:0.0` (the latest patch
|
||||
version)
|
||||
|
||||
|
||||
Generated
+24
-24
@@ -2005,30 +2005,6 @@ def func(x: bool): ...
|
||||
func("string") # error: [no-matching-overload]
|
||||
```
|
||||
|
||||
## `non-subscriptable`
|
||||
|
||||
<small>
|
||||
Default level: <a href="../../rules#rule-levels" title="This lint has a default level of 'error'."><code>error</code></a> ·
|
||||
Added in <a href="https://github.com/astral-sh/ty/releases/tag/0.0.1-alpha.1">0.0.1-alpha.1</a> ·
|
||||
<a href="https://github.com/astral-sh/ty/issues?q=sort%3Aupdated-desc%20is%3Aissue%20is%3Aopen%20non-subscriptable" target="_blank">Related issues</a> ·
|
||||
<a href="https://github.com/astral-sh/ruff/blob/main/crates%2Fty_python_semantic%2Fsrc%2Ftypes%2Fdiagnostic.rs#L1453" target="_blank">View source</a>
|
||||
</small>
|
||||
|
||||
|
||||
**What it does**
|
||||
|
||||
Checks for subscripting objects that do not support subscripting.
|
||||
|
||||
**Why is this bad?**
|
||||
|
||||
Subscripting an object that does not support it will raise a `TypeError` at runtime.
|
||||
|
||||
**Examples**
|
||||
|
||||
```python
|
||||
4[1] # TypeError: 'int' object is not subscriptable
|
||||
```
|
||||
|
||||
## `not-iterable`
|
||||
|
||||
<small>
|
||||
@@ -2055,6 +2031,30 @@ for i in 34: # TypeError: 'int' object is not iterable
|
||||
pass
|
||||
```
|
||||
|
||||
## `not-subscriptable`
|
||||
|
||||
<small>
|
||||
Default level: <a href="../../rules#rule-levels" title="This lint has a default level of 'error'."><code>error</code></a> ·
|
||||
Added in <a href="https://github.com/astral-sh/ty/releases/tag/0.0.1-alpha.1">0.0.1-alpha.1</a> ·
|
||||
<a href="https://github.com/astral-sh/ty/issues?q=sort%3Aupdated-desc%20is%3Aissue%20is%3Aopen%20not-subscriptable" target="_blank">Related issues</a> ·
|
||||
<a href="https://github.com/astral-sh/ruff/blob/main/crates%2Fty_python_semantic%2Fsrc%2Ftypes%2Fdiagnostic.rs#L1453" target="_blank">View source</a>
|
||||
</small>
|
||||
|
||||
|
||||
**What it does**
|
||||
|
||||
Checks for subscripting objects that do not support subscripting.
|
||||
|
||||
**Why is this bad?**
|
||||
|
||||
Subscripting an object that does not support it will raise a `TypeError` at runtime.
|
||||
|
||||
**Examples**
|
||||
|
||||
```python
|
||||
4[1] # TypeError: 'int' object is not subscriptable
|
||||
```
|
||||
|
||||
## `override-of-final-method`
|
||||
|
||||
<small>
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "ty"
|
||||
version = "0.0.7"
|
||||
version = "0.0.8"
|
||||
requires-python = ">=3.8"
|
||||
dependencies = []
|
||||
description = "An extremely fast Python type checker, written in Rust."
|
||||
|
||||
+1
-1
Submodule ruff updated: f9afcc400c...e71fd9c040
Reference in New Issue
Block a user