Skip to content

Use (int, np.integer) in isinstance#126

Merged
Leengit merged 1 commit intomasterfrom
Issue-125-numpy-ints-fail-isinstance(x,-int)
Apr 21, 2023
Merged

Use (int, np.integer) in isinstance#126
Leengit merged 1 commit intomasterfrom
Issue-125-numpy-ints-fail-isinstance(x,-int)

Conversation

@cooperlab
Copy link
Collaborator

@Leengit This is an odd issue I came across with more details here.

Should I apply this to other isinstance(x, int) checks with user-provided values too? Numpy types will be common.

@cooperlab cooperlab requested a review from Leengit April 14, 2023 12:57
Copy link
Collaborator

@Leengit Leengit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. I see no downside to your making similar changes anywhere else you think they could help.

@Leengit Leengit merged commit 61a80f2 into master Apr 21, 2023
@Leengit Leengit deleted the Issue-125-numpy-ints-fail-isinstance(x,-int) branch April 21, 2023 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants