Skip to content
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

Don't do truthy check on object; use is not None #14004

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

eriknw
Copy link
Contributor

@eriknw eriknw commented Apr 5, 2023

For example, without this change, doing df.merge? on a pandas DataFrame currently fails, because df.__bool__() raises an exception.

I'm not sure the best way to add a test, and at a glance I didn't see any issue for this yet.

This regression was introduced in #13975 and version 8.12.0. CC @Carreau

For example, without this change, doing `df.merge?` on a pandas DataFrame
currently fails, because `df.__bool__()` raises an exception.
@Carreau
Copy link
Member

Carreau commented Apr 6, 2023

oops, thanks. I will try to take care of this a and add a test.

@Carreau Carreau merged commit 1d6bfe9 into ipython:main Apr 11, 2023
22 checks passed
@Carreau Carreau modified the milestones: 8.13, 8.12.1 Apr 25, 2023
@Carreau
Copy link
Member

Carreau commented Apr 25, 2023

meeseeksdev backport to 8.12.x

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.

None yet

2 participants