Skip to content

ENH: Improve the annotations of np.core._internal#19029

Merged
charris merged 4 commits intonumpy:mainfrom
BvB93:internal
May 20, 2021
Merged

ENH: Improve the annotations of np.core._internal#19029
charris merged 4 commits intonumpy:mainfrom
BvB93:internal

Conversation

@BvB93
Copy link
Member

@BvB93 BvB93 commented May 18, 2021

This PR improves the annotations of the _ctypes class in np.core._internal,
instances of which are exposed via the ndarray.ctypes attribute.

When the module was originally annotated way back when the builtin ctypes module was insufficiently stubbed out to properly annotate aforementioned class. These days, this is not so much of an issue, hence allowing for the improvements introduced in this PR.

@BvB93
Copy link
Member Author

BvB93 commented May 18, 2021

The tests are acting up for some reason; closing and re-opening.

@BvB93
Copy link
Member Author

BvB93 commented May 18, 2021

Restarting tests again.

@BvB93 BvB93 closed this May 18, 2021
@BvB93 BvB93 reopened this May 18, 2021
Bas van Beek and others added 3 commits May 18, 2021 22:55
@charris charris merged commit d707f39 into numpy:main May 20, 2021
@charris
Copy link
Member

charris commented May 20, 2021

Thanks Bas.

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.

3 participants