astral-sh
ruff
BlogDocsChangelog

Branches performance

Pull requests

[ty] Avoid duplicate syntax errors for `await` outside functions#22826
last run
5 hours ago
[ty] Avoid duplicate syntax errors for `await` outside functions Summary -- This PR fixes astral-sh/ty#2598 by not emitting the `YieldOutsideFunction` syntax error for `await` expressions outside of functions. This isn't the most elegant fix, but as I noted in the TODO comment, I think a better long-term fix like not emitting `YieldOutsideFunction` errors for `await` at all would change the behavior of Ruff's stable `F704` lint rule. We should be able to fix that and this TODO when resolving #19122. Test Plan -- We already had an existing mdtest for this behavior, so I just had to update it to remove the less specific error message
5 hours ago
ebab393
brent/duplicate-async-errors
CodSpeed Performance Gauge
0%
docs(rules): expand D300 description to include single quotes
8 hours ago
0632b8e
Jkhall81:docs/fix-d300-clarification-20838
CodSpeed Performance Gauge
0%
[ty] Simplify `OverloadLiteral::spans` and `OverloadLiteral::parameter_span`
10 hours ago
36f5d78
alex/function-spans-expect
CodSpeed Performance Gauge
0%
[ty] Add ParamSpec context to missing argument diagnostics When a ParamSpec callable is called without the required `*args` or `**kwargs`, the error message now includes a sub-diagnostic explaining why these arguments are required. This addresses reviewer feedback from PR #22820 about making it clearer why these parameters are required in some cases and not in others. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
10 hours ago
427872b
charlie/ps
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home Terms Privacy Docs