Skip to content

Fixes to generic builtin types#10766

Merged
JukkaL merged 4 commits into
masterfrom
fix-tuple-type-alias
Jul 5, 2021
Merged

Fixes to generic builtin types#10766
JukkaL merged 4 commits into
masterfrom
fix-tuple-type-alias

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Jul 5, 2021

This fixes these issues:

  • Allow variable-length tuple (tuple[int, ...]) in type aliases
  • Allow generic built-in types (e.g. list[int]) in stubs in all Python versions

Fixes #9980. Fixes #10303. Fixes #10731.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 5, 2021

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas.git)
- pandas/_libs/window/aggregations.pyi:73: error: Unexpected "..."  [misc]

@JukkaL JukkaL merged commit 6eafc5e into master Jul 5, 2021
@JukkaL JukkaL deleted the fix-tuple-type-alias branch July 5, 2021 13:52
@hauntsaninja
Copy link
Copy Markdown
Collaborator

Hooray!

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

Labels

None yet

Projects

None yet

3 participants