astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[ty] Disambiguate duplicate-looking overloaded callables in union display
charlie/projection
56 seconds ago
[`ruff`] Add unsafe fix for os-path-commonprefix (`RUF071`) (#23852)
main
2 hours ago
[ty] Ensure a `type[]` type `T` is always considered assignable to a union that holds `T` and a protocol `P`
unsound-upcast-2
5 hours ago
[ty] Preserve typevar branch correlation when binding descriptors
charlie/projection
5 hours ago
[ty] Preserve typevar branch correlation when binding descriptors
charlie/projection
6 hours ago
Preserve type-expression parentheses in the formatter (#23867) ## Summary This is a follow-up to #23865 generated by prompted Codex as follows: > Can you find another bug like https://github.com/astral-sh/ruff/issues/23864 in the formatter for us to fix? Here are some examples that previously had their parentheses stripped (producing syntax errors) but now format correctly: ```python # Annotated assignments with named expressions x: (value := int) = 1 # was formatted as: x: value := int = 1 # Annotated assignments with yield def f(): y: (yield 1) = 1 # was formatted as: y: yield 1 = 1 z: (yield 1) # was formatted as: z: yield 1 # Annotated assignments with await async def g(): a: (await g()) = 1 # was formatted as: a: await g() = 1 b: (await g()) # was formatted as: b: await g() # Return annotations with await async def h() -> (await g()): # was formatted as: async def h() -> await g(): pass # Type aliases type X = (value := int) # was formatted as: type X = value := int ``` In each case, the parentheses are required for the expression to be syntactically valid, but the formatter was previously stripping them.
main
6 hours ago
Encode in parent
codex/preserve-type-expression-parens
6 hours ago
Encode in parent
codex/preserve-type-expression-parens
6 hours ago
Active Branches
[ty] Ensure a `type[]` type `T` is always considered assignable to a union that holds `T` and a protocol `P`
last run
5 hours ago
#23901
CodSpeed Performance Gauge
0%
[ty] Disambiguate duplicate-looking overloaded callables in union display
last run
5 hours ago
#23907
CodSpeed Performance Gauge
+6%
Fix shell injection via `shell=True` in subprocess calls
last run
7 hours ago
#23894
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs