Skip to content

Conversation

@BvB93
Copy link
Member

@BvB93 BvB93 commented Sep 3, 2023

Closes #24319

Allow binary_repr to accept both numpy integers as well as any object implementing the __index__ interface (considering the function makes an explicit call to operator.index).

@BvB93 BvB93 added 09 - Backport-Candidate PRs tagged should be backported 41 - Static typing labels Sep 3, 2023
@charris charris merged commit 0ed6bb1 into numpy:main Sep 3, 2023
@charris
Copy link
Member

charris commented Sep 3, 2023

Thanks Bas.

@charris charris changed the title TYP: Allow binary_repr to accept any object implementing __index__ TYP: Allow binary_repr to accept any object implementing __index__ Sep 3, 2023
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 3, 2023
@BvB93 BvB93 deleted the binary_repr branch September 3, 2023 17:12
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: (Typing) binary_repr does not seem to accept unsignedinteger[_8Bit] although it does

2 participants