Skip to content

TYP: Relax the return-type of np.vectorize#20858

Merged
charris merged 2 commits intonumpy:mainfrom
BvB93:vectorize
Jan 24, 2022
Merged

TYP: Relax the return-type of np.vectorize#20858
charris merged 2 commits intonumpy:mainfrom
BvB93:vectorize

Conversation

@BvB93
Copy link
Member

@BvB93 BvB93 commented Jan 19, 2022

Closes #20856

Depending on the vectorized function and the value of signature the return type can be either an array or a tuple thereof.
Set the return-type to Any for now, as guaranteeing either a tuple or an array is returned is non-trivial.

@charris
Copy link
Member

charris commented Jan 24, 2022

Thanks Bas.

@BvB93 BvB93 deleted the vectorize branch January 24, 2022 00:54
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 27, 2022
@charris charris removed this from the 1.22.2 release milestone Jan 27, 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.

BUG: Incorrect typing of return values of numpy.vectorize

2 participants