ruff/crates/ruff_linter/resources/test/fixtures/syntax_errors
Bhuminjay Soni 4c3e1930f6
[syntax-errors] Detect yield from inside async function (#20051)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
-->

## Summary

This PR implements
https://docs.astral.sh/ruff/rules/yield-from-in-async-function/ as a
syntax semantic error

## Test Plan

<!-- How was it tested? -->
I have written a simple inline test as directed in
[https://github.com/astral-sh/ruff/issues/17412](https://github.com/astral-sh/ruff/issues/17412)

---------

Signed-off-by: 11happy <soni5happy@gmail.com>
Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
2025-09-03 10:13:05 -04:00
..
async_comprehension.ipynb
async_comprehension.py [semantic-syntax-tests] Add test fixtures for AwaitOutsideAsyncFunction (#17785) 2025-05-05 14:02:06 -04:00
await_outside_async_function.py [semantic-syntax-tests] Add test fixtures for AwaitOutsideAsyncFunction (#17785) 2025-05-05 14:02:06 -04:00
await_scope.ipynb [syntax-errors] yield, yield from, and await outside functions (#17298) 2025-04-11 10:16:23 -04:00
late_future_import.py Add Semantic Error Test for LateFutureImport (#17612) 2025-04-25 08:32:57 -04:00
load_before_global_declaration.py [semantic-syntax-errors] test for LoadBeforeGlobalDeclaration - ruff linter (#17592) 2025-04-24 16:14:33 -04:00
return_outside_function.py [syntax-errors] return outside function (#17300) 2025-04-11 17:05:54 +00:00
yield_from_in_async_function.py [syntax-errors] Detect yield from inside async function (#20051) 2025-09-03 10:13:05 -04:00
yield_scope.py [syntax-errors] yield, yield from, and await outside functions (#17298) 2025-04-11 10:16:23 -04:00