Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TYP: Allow binary_repr to accept any object implementing __index__ #24628

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

Merged
merged 1 commit into from
Sep 3, 2023

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