Skip to content

Commit

Permalink
semanal-types: add testParamSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Aug 29, 2020
1 parent 9c2c419 commit 5dd28ed
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test-data/unit/semanal-types.test
Original file line number Diff line number Diff line change
Expand Up @@ -1497,3 +1497,14 @@ MypyFile:1(
NameExpr(z [__main__.z])
IntExpr(0)
Any))


[case testParamSpec]
from typing import ParamSpec
P = ParamSpec("P")
[out]
MypyFile:1(
ImportFrom:1(typing, [ParamSpec])
AssignmentStmt:2(
NameExpr(P* [__main__.P])
ParamSpecExpr:2()))

0 comments on commit 5dd28ed

Please sign in to comment.