Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-44793: Fix checking the number of arguments when subscribe a gene… #27515

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jul 31, 2021

…ric type with ParamSpec parameter.

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

Use also the term "arguments" instead of "parameters" in error
message for too few/many arguments.

https://bugs.python.org/issue44793

…ric type with ParamSpec parameter.

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

Use also the term "arguments" instead of "parameters" in error
message for too few/many arguments.
@serhiy-storchaka serhiy-storchaka force-pushed the typing-generic-paramspec-numargs branch from fa6937f to 0db1b4d Jul 31, 2021
@serhiy-storchaka serhiy-storchaka merged commit f92b913 into python:main Aug 2, 2021
13 checks passed
@miss-islington
Copy link
Contributor

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

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒🤖

@serhiy-storchaka serhiy-storchaka deleted the typing-generic-paramspec-numargs branch Aug 2, 2021
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented Aug 2, 2021

GH-27537 is a backport of this pull request to the 3.10 branch.

miss-islington added a commit to miss-islington/cpython that referenced this issue Aug 2, 2021
…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 <storchaka@gmail.com>
miss-islington added a commit that referenced this issue Aug 2, 2021
…ric type with ParamSpec parameter. (GH-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 <storchaka@gmail.com>
@Fidget-Spinner
Copy link
Contributor

@Fidget-Spinner Fidget-Spinner commented Aug 2, 2021

Sorry, I wasn't able to review this on time Serhiy.

Looking at this after the merge, it looks good. Thanks!

@serhiy-storchaka
Copy link
Member Author

@serhiy-storchaka serhiy-storchaka commented Aug 3, 2021

It would be good to have a review, but I merged this PR because it is relatively simple and is a prerequisite of other more complex changes.

The code changed in this PR will likely be rewritten in future, I am just not sure that that changes will be backported.

JuniorJPDJ added a commit to JuniorJPDJ/cpython that referenced this issue Aug 12, 2021
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants