-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Change _can_hold_na to a class attribute and document that it shouldn't be changed #20819
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Will wait a bit if @jorisvandenbossche or @jreback have thoughts.
@@ -21,7 +21,7 @@ def test_ndim(self, data): | |||
assert data.ndim == 1 | |||
|
|||
def test_can_hold_na_valid(self, data): | |||
assert data._can_hold_na in {True, False} | |||
assert data._can_hold_na # Must be True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can assert data._can_hold_na is True
, otherwise this is not strictly checking that it is an actual boolean True
@TomAugspurger It seems that you made the change that @jreback asked for. Anything else for me to do? |
Nope, we're good. Thanks!. |
_can_hold_na
git diff upstream/master -u -- "*.py" | flake8 --diff
ExtensionArray
support new for v0.23Replaces pull request #20815 (see discussion there for reasoning)