mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix various ParamSpec errors in typing (GH-24176)
1. ParamSpec -> TypeVar for ``typing.Concatenate`` 2. ParamSpec's call signature should align with its documentation. Noticed in GH-24169
This commit is contained in:
parent
81f87bbf9f
commit
ace008c531
2 changed files with 3 additions and 3 deletions
|
@ -779,7 +779,7 @@ class ParamSpec(_Final, _Immutable, _TypeVarLike, _root=True):
|
|||
args = object()
|
||||
kwargs = object()
|
||||
|
||||
def __init__(self, name, bound=None, covariant=False, contravariant=False):
|
||||
def __init__(self, name, *, bound=None, covariant=False, contravariant=False):
|
||||
self.__name__ = name
|
||||
super().__init__(bound, covariant, contravariant)
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue