mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 11:53:49 +07:00
Support type hints and type checking for typing.ParamSpec and typing.Concatenate (cherry picked from commit 7854b3386ccdffc0091664e0923622cd8c093fc9) IJ-MR-12970 GitOrigin-RevId: 4578cb463b6ab8fc244766bfaccb122d0e2b7479
12 lines
251 B
Python
12 lines
251 B
Python
from typing import Callable, Concatenate, ParamSpec
|
|
|
|
P = ParamSpec("P")
|
|
|
|
|
|
def bar(x: int, *args: bool) -> int: ...
|
|
|
|
|
|
def rem<the_ref>ove(x: Callable[Concatenate[int, bool, list[str], P], int]) -> Callable[P, bool]: ...
|
|
|
|
|
|
expression = remove(bar)(True) |