-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
User generic with TypeVarTuple does not check for minimal type of arguments #99382
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
Labels
3.11
only security fixes
3.12
only security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
Comments
The code says this: Lines 1833 to 1836 in f531b68
|
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
Nov 12, 2022
…ution of ParamSpec and TypeVarTuple * Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar.
serhiy-storchaka
added a commit
that referenced
this issue
Nov 29, 2022
… and TypeVarTuple (GH-99412) * Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 29, 2022
…ution of ParamSpec and TypeVarTuple (pythonGH-99412) * Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar. (cherry picked from commit 8f2fb7d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 29, 2022
…ution of ParamSpec and TypeVarTuple (pythonGH-99412) * Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar. (cherry picked from commit 8f2fb7d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington
added a commit
that referenced
this issue
Nov 29, 2022
… and TypeVarTuple (GH-99412) * Fix substitution of TypeVarTuple and ParamSpec together in user generics. * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases. * Check the number of arguments in substitution in user generics containing a TypeVarTuple and one or more TypeVar. (cherry picked from commit 8f2fb7d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Fatal1ty
added a commit
to Fatal1ty/mashumaro
that referenced
this issue
Dec 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.11
only security fixes
3.12
only security fixes
topic-typing
type-bug
An unexpected behavior, bug, or error
The following code:
is executed without errors. It is expected to get an error because
A
requires at least two arguments.Without
TypeVarTuple
you get helpful errors.The text was updated successfully, but these errors were encountered: