diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-03-23 16:54:07 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-23 16:54:07 (GMT) |
| commit | 1645a40b5eb59e7021c93fd6593d1a316d3e26e8 (patch) | |
| tree | 70ff1882d9af12bb5c7eac6312be52a68f8cb8c8 /Python/pythonrun.c | |
| parent | 84ae50c9146e98be28cf3af4606f0ebad07807aa (diff) | |
| download | cpython-1645a40b5eb59e7021c93fd6593d1a316d3e26e8.zip cpython-1645a40b5eb59e7021c93fd6593d1a316d3e26e8.tar.gz cpython-1645a40b5eb59e7021c93fd6593d1a316d3e26e8.tar.bz2 | |
gh-88965: typing: fix type substitution of a list of types after initial `ParamSpec` substitution (GH-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]
```
(cherry picked from commit adb0621652f489033b9db8d3949564c9fe545c1d)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions
