diff options
| author | Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> | 2021-01-11 08:11:41 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-10 16:11:41 -0800 |
| commit | ace008c531dd685a30c1dd68f9b5ba35f20171cf (patch) | |
| tree | 92fa7482600acffc7b40592d061a9c8d9c37c8c1 /Lib/typing.py | |
| parent | 81f87bbf9f65702062021a78abd9b8f82c98a414 (diff) | |
| download | cpython-git-ace008c531dd685a30c1dd68f9b5ba35f20171cf.tar.gz | |
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
Diffstat (limited to 'Lib/typing.py')
| -rw-r--r-- | Lib/typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py index 88d0d623a4..6224930c3b 100644 --- a/Lib/typing.py +++ b/Lib/typing.py @@ -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: |
