Skip to content

Commit

Permalink
Add another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JukkaL committed Sep 17, 2024
1 parent 71aa04e commit d2369c4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test-data/unit/check-python312.test
Original file line number Diff line number Diff line change
Expand Up @@ -1768,3 +1768,14 @@ class E[T]:
x: T

c: E.F[int]

[case testPEP695NestedGenericClass4]
# flags: --enable-incomplete-feature=NewGenericSyntax
class A:
class B[T]:
def __get__(self, instance: A, owner: type[A]) -> T:
return None # E: Incompatible return value type (got "None", expected "T")
f = B[int]()

a = A()
v = a.f

0 comments on commit d2369c4

Please sign in to comment.