Skip to content

gh-88965: Fix type substitution of a list of types after initial ParamSpec substitution#102808

Merged
AlexWaygood merged 5 commits intopython:mainfrom
sobolevn:issue-88965
Mar 23, 2023
Merged

gh-88965: Fix type substitution of a list of types after initial ParamSpec substitution#102808
AlexWaygood merged 5 commits intopython:mainfrom
sobolevn:issue-88965

Conversation

@sobolevn
Copy link
Member

@sobolevn sobolevn commented Mar 18, 2023

I've tried to make tests as complete as I can imagine. But, extra cases and suggestions are welcome! ;)

This change has two parts:

  1. Collecting type parameters from arguments is changed. Now, we analyze the contents of passes tuples
  2. Next, we need to substitute nested tuple. I've reused the existing logic here, but I had to create a method for it

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory topic-typing type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants