astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[ty] Respect non-explicitly defined dataclass params
david/respect-undeclared-dataclass-params
39 seconds ago
[ty] Check return type of generator functions (#24026) ## Summary Perform return type checking for generator functions. part of https://github.com/astral-sh/ty/issues/1718 ## Test Plan The two newly added diagnostics in ecosystem result are correct the rest were marked as flaky. So looks good. I updated the tests for `return_types.md`. --------- Co-authored-by: David Peter <sharkdp@users.noreply.github.com>
main
8 minutes ago
Recognize Self annotation and self assignment in SLF001 SLF001 now suppresses false positives for: - Variables annotated as typing.Self (e.g. other: Self) - Variables assigned directly from self (e.g. this = self)
moktamd:fix/slf001-self-type
8 minutes ago
Implement useless-finally (RUF-072) (#24165) Closes #19158 Implements the `useless_finally` rule (`RUF072`), which detects useless `finally` blocks that only contain `pass` or `...`. It handles two cases: - `try/except/finally: pass` - the `finally` clause is removed, leaving a valid `try/except` - bare `try/finally: pass`: the entire `try/finally` is unwrapped, the try body is dedented to replace the whole statement Fix is skipped when comments are present in or around the `finally` block. It complements with existing rules like `RUF047` (`needless-else`) and `SIM105` (`suppressible-exception`). It case of `SIM105` it also unblocks this rule, as currently `SIM105` got skipped if `finally` has any body at all (even just `pass`). ## Test Plan - `RUF072.py` - main rule test with error cases and non-error. - `useless_finally_and_needless_else` - test function, which checks how `RUF047` and `RUF072` work together on the same `try` statement. - `useless_finally_and_suppressible_exception` - test function, which checks how `RUF072` and `SIM105` work together.
main
16 minutes ago
[ty] Add test for a dataclass with a default field converter (#24169) ## Summary Related to the question [here](https://github.com/astral-sh/ty/issues/1327#issuecomment-4020254068).
main
20 minutes ago
[ty] Add test for a dataclass with a default field converter
david/converter-default
22 minutes ago
[ty] Dataclass field converters (#23088) ## Summary Adds support for dataclass field [`converter`s](https://typing.python.org/en/latest/spec/dataclasses.html#converters). closes https://github.com/astral-sh/ty/issues/972 ## Ecosystem impact Lots of removed false positives on attrs, home-assistant/core, and trio. ## Typing conformance results With this PR, we pass almost all tests in [`dataclasses_transform_converter.py`](https://github.com/python/typing/blob/b6411fafea4458aa6d4b6852d94a519bd71a41a3/conformance/tests/dataclasses_transform_converter.py). The remaining problem in this test suite is not related to dataclasses or dataclass converters, but rather to a limitation in our generics solver (we don't understand the call to `field`, and therefore don't recognize the converter function). ## Test Plan New Markdown tests
main
31 minutes ago
fix regressions
Hugo-Polloli:generic-factory-specialization
40 minutes ago
Latest Branches
CodSpeed Performance Gauge
0%
Recognize `Self` annotation and `self` assignment in SLF001
#24144
2 days ago
e380e45
moktamd:fix/slf001-self-type
CodSpeed Performance Gauge
0%
[ty] Add test for a dataclass with a default field converter
#24169
29 minutes ago
a945832
david/converter-default
CodSpeed Performance Gauge
0%
[ty] Infer generic class specializations for class and static methods
#24168
48 minutes ago
7be1644
Hugo-Polloli:generic-factory-specialization
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs