mirror of https://github.com/astral-sh/ruff
Add await to YieldOutsideFunction
This commit is contained in:
parent
b536159541
commit
11234ea555
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue