Add TODO around nested globals

This commit is contained in:
Charlie Marsh 2022-12-10 17:44:08 -05:00
parent fb681c614a
commit 484d7a30bd
1 changed files with 10 additions and 0 deletions

View File

@ -411,6 +411,16 @@ mod tests {
"#,
&[],
)?;
// TODO(charlie): Extract globals recursively (such that we don't raise F821).
flakes(
r#"
def c(): bar
def d():
def b():
global bar; bar = 1
"#,
&[CheckCode::F821],
)?;
Ok(())
}