Skip to content

Fix numpy-dev CI warnings #57379

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
Feb 12, 2024
Merged

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Feb 12, 2024

No description provided.

"NpyArr_iterNextItem received a non-array object");
return 0;
}
PyArrayObject *arrayobj = (PyArrayObject *)npyarr->array;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the only instance in our JSON code where we could not use a const qualifier for the PyArrayObject type because PyArray_DESCR accepts a non-const type. I think this is something that will eventually be addressed in numpy/numpy#24855 (comment) but @seberg probably knows more

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I noticed that problem as well today. I think we should change it, might annoy some C++ folks, but should be easy enough to work around.

@WillAyd WillAyd added CI Continuous Integration IO JSON read_json, to_json, json_normalize Compat pandas objects compatability with Numpy or Python functions labels Feb 12, 2024
@mroeschke mroeschke added this to the 2.2.1 milestone Feb 12, 2024
@mroeschke mroeschke merged commit c064308 into pandas-dev:main Feb 12, 2024
@mroeschke
Copy link
Member

Thanks @WillAyd

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Feb 12, 2024
mroeschke pushed a commit that referenced this pull request Feb 12, 2024
Backport PR #57379: Fix numpy-dev CI warnings

Co-authored-by: William Ayd <[email protected]>
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration Compat pandas objects compatability with Numpy or Python functions IO JSON read_json, to_json, json_normalize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants