Skip to content

Commit 5dd28ed

Browse files
author
hauntsaninja
committed
semanal-types: add testParamSpec
1 parent 9c2c419 commit 5dd28ed

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test-data/unit/semanal-types.test

+11
Original file line numberDiff line numberDiff line change
@@ -1497,3 +1497,14 @@ MypyFile:1(
14971497
NameExpr(z [__main__.z])
14981498
IntExpr(0)
14991499
Any))
1500+
1501+
1502+
[case testParamSpec]
1503+
from typing import ParamSpec
1504+
P = ParamSpec("P")
1505+
[out]
1506+
MypyFile:1(
1507+
ImportFrom:1(typing, [ParamSpec])
1508+
AssignmentStmt:2(
1509+
NameExpr(P* [__main__.P])
1510+
ParamSpecExpr:2()))

0 commit comments

Comments
 (0)