Skip to content
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

TYP,MAINT: Explicitly allow sequences of array-likes in np.concatenate #21102

Merged
merged 2 commits into from Feb 22, 2022

Conversation

BvB93
Copy link
Member

@BvB93 BvB93 commented Feb 21, 2022

Closes #20901, alternative to #20903.

Explicitly allow a sequence of array-like objects in np.concatenate, rather than just array-likes.
Note that this does not fully get rid of all false positives, i.e. heterogeneous tuples of array-likes still aren't accepted due to what appears to be a mypy bug.

These all concern known false positives due to known mypy bugs. If one of these tests break, than that would generally be indicative of a upstream bug fix
@charris
Copy link
Member

charris commented Feb 22, 2022

Thanks Bas.

@BvB93 BvB93 deleted the concat branch February 22, 2022 17:20
@BvB93 BvB93 removed the 09 - Backport-Candidate PRs tagged should be backported label Feb 22, 2022
@BvB93 BvB93 removed this from the 1.22.3 release milestone Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TYP: concatenate typing produces unexpected errors
2 participants