-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Improve test cases for type substitution of a list of types after initial ParamSpec substitution #103054
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
Comments
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Mar 27, 2023
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Mar 27, 2023
JelleZijlstra
pushed a commit
that referenced
this issue
Mar 29, 2023
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 29, 2023
…ythonGH-103055) (cherry picked from commit 60bdc16) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
miss-islington
added a commit
that referenced
this issue
Mar 29, 2023
) (cherry picked from commit 60bdc16) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
Thanks Nikita! |
warsaw
pushed a commit
to warsaw/cpython
that referenced
this issue
Apr 11, 2023
…ython#103055) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Eclips4 <80244920+Eclips4@users.noreply.github.com>
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Uh oh!
There was an error while loading. Please reload this page.
After merging #102808 I realized that I've missed several important cases.
Right now substitution algorithm has these lines:
cpython/Lib/typing.py
Lines 1477 to 1488 in 2cdc518
It is tested. But, it is never tested for the nested arguments:
cpython/Lib/typing.py
Lines 1500 to 1511 in 2cdc518
I think that
Callable
is complex and important enought to be covered with as many cases as possible. Furthermore,Callable
can be nested deeply in real types and we need to be sure that this use-case works as intended.I will send a PR with more tests :)
Related #88965
Linked PRs
Callable
type subtitution tests #103055Callable
type substitution tests (GH-103055) #103105The text was updated successfully, but these errors were encountered: