Skip to content

Commit

Permalink
Add daemon test case
Browse files Browse the repository at this point in the history
  • Loading branch information
JukkaL committed Sep 17, 2024
1 parent d2369c4 commit 5c4cbd2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test-data/unit/fine-grained-python312.test
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,23 @@ from builtins import tuple as B
==
main:4: error: Incompatible types in assignment (expression has type "int", variable has type "tuple[int, str]")
main:5: error: Incompatible types in assignment (expression has type "str", variable has type "tuple[int, str]")

[case testPEP695NestedGenericClassMethodUpdated]
# flags: --enable-incomplete-feature=NewGenericSyntax
from a import f

class C:
class D[T]:
x: T
def m(self) -> T:
f()
return self.x

[file a.py]
def f() -> None: pass

[file a.py.2]
def f(x: int) -> None: pass
[out]
==
main:8: error: Missing positional argument "x" in call to "f"

0 comments on commit 5c4cbd2

Please sign in to comment.