mirror of
https://github.com/astral-sh/ruff
synced 2026-01-24 06:50:59 -05:00
Add await to YieldOutsideFunction
This commit is contained in:
@@ -457,7 +457,7 @@ where
|
||||
));
|
||||
}
|
||||
}
|
||||
ExprKind::Yield { .. } | ExprKind::YieldFrom { .. } => {
|
||||
ExprKind::Yield { .. } | ExprKind::YieldFrom { .. } | ExprKind::Await { .. } => {
|
||||
let scope =
|
||||
&self.scopes[*(self.scope_stack.last().expect("No current scope found."))];
|
||||
if self
|
||||
|
||||
Reference in New Issue
Block a user