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
Fix invalid-sequence-index
for call to scipy.fft.rfft
#8103
base: main
Are you sure you want to change the base?
Conversation
I'd like feedback from maintainers on where I should add |
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.
I think it's better to pinpoint the exact code construct that create the problem in scipy and then use that directly in the test. We won't have to install scipy, and the test will still be meaningful if the scipy code is refactored and the problematic code construct disappear.
π€ Effect of this PR on checked open source code: π€ Effect on django:
The following messages are no longer emitted:
This comment was generated for commit b11d2d6 |
That makes sense, but I think I'll still need to at least test with |
There are import from numpy but it's tested without installing numpy (it's simply an example using numpy). We would need a numpy astroid plugin if something is specific to numpy. We might need to discuss how we test c extension generically by providing the C code ourselves to be able to follow the same logic than m'y previous comment for c extensions. |
b11d2d6
to
1033d1c
Compare
I've pushed the latest code I have but will block this until maintainers let me know about how to move forward with testing this. |
Type of Changes
Description
Fix
invalid-sequence-index
for call toscipy.fft.rfft
.Closes #8018