Skip to content
Merged
Prev Previous commit
Next Next commit
add failing tests for classes where no_type_check is also valid
  • Loading branch information
ntBre committed Nov 26, 2024
commit 01f29a7054cb3a4f53c24ffae617d824b6ac7854
6 changes: 6 additions & 0 deletions crates/ruff_linter/resources/test/fixtures/pyflakes/F722_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
@no_type_check
def f(arg: "this isn't python") -> "this isn't python either":
pass


@no_type_check
class C:
def f(arg: "this isn't python") -> "this isn't python either":
pass
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@
@no_type_check
def f(arg: "A") -> "R":
pass


@no_type_check
class C:
def f(self, arg: "B") -> "S":
pass