astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
add tests for covariant case
cjm/generic-string
53 minutes ago
[ty] Infer precise types for bit-shift operations on integer literals (#23301) ## Summary Fixes https://github.com/astral-sh/ty/issues/517. This PR revives https://github.com/astral-sh/ruff/pull/18329 / https://github.com/astral-sh/ruff/pull/19281, but without the controversial bit of those PRs (the new diagnostic). Rather than adding a new diagnostic if an integer is left-shifted or right-shifted by a negative number, we just ignore that and infer `int`. We can always add a new diagnostic later, if we find consensus on it. Along the way, Claude also discovered that `reveal_type(-(-9223372036854775807 - 1))` currently reveals `Literal[-9223372036854775808]` on `main`, which is... not correct. So this PR fixes that too. ### Test Coverage mdtests Co-authored-by: Brandt Bucher <brandt@python.org>
main
1 hour ago
fixup precision
claude/rebase-remove-division-zero-XADgq
1 hour ago
more interning & pre-allocating
mtshiba:intern-use-def-fields
1 hour ago
Update taiki-e/install-action action to v2.67.26
renovate/taiki-e-install-action-2.x
1 hour ago
[ty] Parenthesize callable types when they appear in the return annotation of other callable types (#23327) ## Summary A revealed type like this is pretty hard to read, because it's unclear which `->` operator has higher precedence over the other: ```py [**P, T](c: (**P) -> T) -> (**P) -> T ``` this PR changes our type display for callables returning callables, so that the type is instead printed like this, which is... a _bit_ easier to parse, at least: ```py [**P, T](c: (**P) -> T) -> ((**P) -> T) ``` ## Test Plan mdtests updated
main
1 hour ago
generalize using multi-inference
alex/type-expression-quotes
1 hour ago
Apply suggestion from @AlexWaygood
claude/parenthesize-callable-types-RZHEh
1 hour ago
Active Branches
[ty] fix inferring type variable from string literal argument
last run
53 minutes ago
#23326
CodSpeed Performance Gauge
0%
[ty] hash-cons `UseDefMap` fields
last run
1 hour ago
#23283
CodSpeed Performance Gauge
-1%
Update taiki-e/install-action action to v2.67.26
last run
1 hour ago
#23319
CodSpeed Performance Gauge
0%
Ā© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs