mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 07:04:28 -05:00
[ty] Don't warn yield not in function when yield is in function (#18008)
This commit is contained in:
@@ -556,6 +556,10 @@ impl SemanticSyntaxContext for SemanticSyntaxCheckerVisitor<'_> {
|
||||
true
|
||||
}
|
||||
|
||||
fn in_yield_allowed_context(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn in_generator_scope(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user