We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f46cf commit 89f5f7cCopy full SHA for 89f5f7c
conformance/tests/annotations_forward_refs.py
@@ -19,8 +19,8 @@ def func1(
19
assert_type(p4, list[ClassA | int])
20
21
22
-bad1: ClassA # E: Runtime error: requires quotes
23
-bad2: list[ClassA] # E: Runtime error: requires quotes
+bad1: ClassA # E?: Runtime error prior to 3.14: requires quotes
+bad2: list[ClassA] # E?: Runtime error prior to 3.14: requires quotes
24
bad3: "ClassA" | int # E: Runtime error
25
bad4: int | "ClassA" # E: Runtime error
26
@@ -63,7 +63,7 @@ def invalid_annotations(
63
64
65
class ClassB:
66
- def method1(self) -> ClassB: # E: Runtime error
+ def method1(self) -> ClassB: # E?: Runtime error prior to 3.14
67
return ClassB()
68
69
def method2(self) -> "ClassB": # OK
0 commit comments