cpython/Misc/NEWS.d/next/Library/2023-03-18-14-59-21.gh-issu...

8 lines
349 B
ReStructuredText
Raw Normal View History

typing: Fix a bug relating to substitution in custom classes generic over a
:class:`~typing.ParamSpec`. Previously, if the ``ParamSpec`` was substituted
with a parameters list that itself contained a :class:`~typing.TypeVar`, the
``TypeVar`` in the parameters list could not be subsequently substituted. This
is now fixed.
Patch by Nikita Sobolev.