Tags: gilyas/ruff
Tags
Update CHANGELOG.md with the new commits for 0.8.1 (astral-sh#14664) The 0.8.1 release was delayed, so this PR updates the CHANGELOG.md with the latest commits on `main`.
[red-knot] PEP 695 type aliases (astral-sh#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`)
Changelog for Ruff v0.7 (astral-sh#13794) Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>