diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-03-23 19:26:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 16:26:11 +0000 |
commit | adb0621652f489033b9db8d3949564c9fe545c1d (patch) | |
tree | 6c169a84fec9159498968942587fba1a338dcd26 /Python/bytecodes.c | |
parent | baf4eb083c09b323cc12b8636c28c14089b87de8 (diff) | |
download | cpython-adb0621652f489033b9db8d3949564c9fe545c1d.tar.gz cpython-adb0621652f489033b9db8d3949564c9fe545c1d.zip |
gh-88965: typing: fix type substitution of a list of types after initial `ParamSpec` substitution (#102808)
Previously, this used to fail:
```py
from typing import *
T = TypeVar("T")
P = ParamSpec("P")
class X(Generic[P]):
f: Callable[P, int]
Y = X[[int, T]]
Z = Y[str]
```
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Python/bytecodes.c')
0 files changed, 0 insertions, 0 deletions