Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TYP: _NestedSequence type parameter default to work around a mypy issue (#31399)#31404

Merged
charris merged 1 commit into
numpy:maintenance/2.4.xfrom
charris:backport-31399
May 8, 2026
Merged

TYP: _NestedSequence type parameter default to work around a mypy issue (#31399)#31404
charris merged 1 commit into
numpy:maintenance/2.4.xfrom
charris:backport-31399

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented May 8, 2026

Backport of #31399.

PR summary

This works around false positive var-annotated mypy errors in certain situations, that's currently blocking a fix for the typeshed stdlib stubs.

x-ref: python/typeshed#15472 (comment)

AI Disclosure

N/A

@charris charris added this to the 2.4.5 release milestone May 8, 2026
@charris charris added 08 - Backport Used to tag backport PRs 41 - Static typing labels May 8, 2026
Comment thread numpy/_typing/_nested_sequence.py
Comment thread numpy/_typing/_nested_sequence.py
@charris charris merged commit f880727 into numpy:maintenance/2.4.x May 8, 2026
74 checks passed
@charris charris deleted the backport-31399 branch May 8, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

08 - Backport Used to tag backport PRs 41 - Static typing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants