ruff/crates/ruff_linter/resources/test/fixtures/pyflakes/F722.py

45 lines
411 B
Python

class A:
pass
def f() -> "A":
pass
def g() -> "///":
pass
X: """List[int]"""'' = []
# Type annotations with triple quotes can contain newlines and indentation
# https://github.com/python/typing-council/issues/9
y: """
int |
str
"""
z: """(
int |
str
)
"""
invalid1: """
int |
str)
"""
invalid2: """
int) |
str
"""
invalid3: """
((int)
"""
invalid4: """
(int
"""