Skip to content

[3.10] bpo-44793: Fix checking the number of arguments when subscribe a generic type with ParamSpec parameter. (GH-27515)#27537

Merged
miss-islington merged 1 commit intopython:3.10from
miss-islington:backport-f92b913-3.10
Aug 2, 2021
Merged

[3.10] bpo-44793: Fix checking the number of arguments when subscribe a generic type with ParamSpec parameter. (GH-27515)#27537
miss-islington merged 1 commit intopython:3.10from
miss-islington:backport-f92b913-3.10

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Aug 2, 2021

For example Callable[P, T][[int], str, float] will now raise an error.

Use also term "arguments" instead of "parameters" in error
message for too few/many arguments.
(cherry picked from commit f92b913)

Co-authored-by: Serhiy Storchaka [email protected]

https://bugs.python.org/issue44793

…ric type with ParamSpec parameter. (pythonGH-27515)

For example Callable[P, T][[int], str, float] will now raise an error.

Use also term "arguments" instead of "parameters" in error
message for too few/many arguments.
(cherry picked from commit f92b913)

Co-authored-by: Serhiy Storchaka <[email protected]>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

2 similar comments
@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ❌ .

@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit c8db292 into python:3.10 Aug 2, 2021
@miss-islington miss-islington deleted the backport-f92b913-3.10 branch August 2, 2021 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants