gh-124445: Allow specializing generic ParamSpec aliases (#124512) · python/cpython@bbf1979 · GitHub
Skip to content

Commit bbf1979

Browse files
tomasr8JelleZijlstraAlexWaygood
authored
gh-124445: Allow specializing generic ParamSpec aliases (#124512)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 3a7f17c commit bbf1979

3 files changed

Lines changed: 144 additions & 2 deletions

File tree

Lib/test/test_genericalias.py

Lines changed: 70 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Fix specialization of generic aliases that are generic over a
2+
:class:`typing.ParamSpec` and have been specialized with a
3+
nested type variable.

Objects/genericaliasobject.c

Lines changed: 71 additions & 2 deletions

0 commit comments

Comments
 (0)