Skip to content

Conversation

@BvB93
Copy link
Member

@BvB93 BvB93 commented Sep 9, 2021

closes #19834

numpy.typing currently has a number of (type-check-only) ufunc subclasses that are used for differentiation the various combinations of ufunc.nin and ufunc.nout ufuncs. These classes were previously marked as Any during runtime however, which could trip up autocompletion tools such as Jedi.

This issue has been resolved by instead treating them as ufunc aliases during runtime, similar to how typing.TypedDict is treated w.r.t. dict.

@charris
Copy link
Member

charris commented Sep 9, 2021

Thanks Bas.

@BvB93 BvB93 deleted the ufunc-subclass branch September 9, 2021 16:10
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 26, 2021
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.

Ufuncs are incompatible with jedi since v1.20.0

2 participants