Skip to content

Tags: astral-sh/ruff

Tags

0.8.0

Toggle 0.8.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[red-knot] PEP 695 type aliases (#14357)

## Summary

Add support for (non-generic) type aliases. The main motivation behind
this was to get rid of panics involving expressions in (generic) type
aliases. But it turned out the best way to fix it was to implement
(partial) support for type aliases.

```py
type IntOrStr = int | str

reveal_type(IntOrStr)  # revealed: typing.TypeAliasType
reveal_type(IntOrStr.__name__)  # revealed: Literal["IntOrStr"]

x: IntOrStr = 1

reveal_type(x)  # revealed: Literal[1]

def f() -> None:
    reveal_type(x)  # revealed: int | str
```

## Test Plan

- Updated corpus test allow list to reflect that we don't panic anymore.
- Added Markdown-based test for type aliases (`type_alias.md`)

0.7.4

Toggle 0.7.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to 0.7.4 (#14358)

0.7.3

Toggle 0.7.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to 0.7.3 (#14197)

0.7.2

Toggle 0.7.2's commit message
generate using cargo-dist

0.7.1

Toggle 0.7.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to 0.7.1 (#13913)

0.7.0

Toggle 0.7.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changelog for Ruff v0.7 (#13794)

Co-authored-by: Dhruv Manilawala <[email protected]>

0.6.9

Toggle 0.6.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to 0.6.9 (#13624)

0.6.8

Toggle 0.6.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to 0.6.8 (#13522)

0.6.7

Toggle 0.6.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to v0.6.7 (#13439)

0.6.6

Toggle 0.6.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version to v0.6.6 (#13415)