Skip to content
Merged
Next Next commit
add test case from #13824
  • Loading branch information
ntBre committed Nov 26, 2024
commit 9aa49139392f2db134adc9cfe15852f55c30b38c
18 changes: 18 additions & 0 deletions crates/ruff_linter/src/rules/pyflakes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4221,4 +4221,22 @@ lambda: fu
&[],
);
}

#[test]
fn no_type_check_function() {
flakes(
r#"
from typing import no_type_check

@no_type_check
def f821(arg: "A") -> "R":
pass

@no_type_check
def f722(arg: "this isn't python") -> "this isn't python either":
pass
"#,
&[],
);
}
}