mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +00:00
16 lines
311 B
Python
16 lines
311 B
Python
from typing import no_type_check
|
|
|
|
|
|
# Errors
|
|
|
|
@no_type_check
|
|
class C:
|
|
def f(self, arg: "this isn't python") -> "this isn't python either":
|
|
x: "this also isn't python" = 1
|
|
|
|
|
|
# No errors
|
|
|
|
@no_type_check
|
|
def f(arg: "this isn't python") -> "this isn't python either":
|
|
x: "this also isn't python" = 0
|