Skip to content

Commit

Permalink
Add test case for crash reproducer
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert committed Sep 13, 2024
1 parent 8b6bafc commit 73f4635
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test-data/unit/check-parameter-specification.test
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,15 @@ c: C[int, [int, str], str] # E: Nested parameter specifications are not allowed
reveal_type(c) # N: Revealed type is "__main__.C[Any]"
[builtins fixtures/paramspec.pyi]

[case testParamSpecInheritNoCrashOnNested]
from typing import Generic
from typing_extensions import ParamSpec

P = ParamSpec("P")
class C(Generic[P]): ...
class D(C[int, [int, str], str]): ... # E: Nested parameter specifications are not allowed
[builtins fixtures/paramspec.pyi]

[case testParamSpecConcatenateSelfType]
from typing import Callable
from typing_extensions import ParamSpec, Concatenate
Expand Down

0 comments on commit 73f4635

Please sign in to comment.