-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
grass.pygrass: remove unused arg in ctypes.CFUNCTYPE #4113
Conversation
The reason for this to fail on the win runner only, could be the fact that that is the only one with Python 3.12. |
@echoix I have enabled auto-merge, if you agree with me this is good to go, just approve. |
I would only need to search the logs, this one, and just before, to see it fixed. I can't search on my phone, only scroll. So I'm checking soon ;) (unless someone finds the lines before). |
A run in main before this PR (after fixing trim of GEOS WKT output): https://github.com/OSGeo/grass/actions/runs/10217611481/job/28271801017#step:11:1483 |
Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
Please see the comment here.
Initially, the PR was about fixing "ambiguous variable name 'l', but in this case 'l's were also unused so deletion was the initial fix. However, it appears Windows has a "ctypes" issue.
I would like to revert them as they were, but rename "l"s to avoid the E741 (Checks for the use of the characters 'l', 'O', or 'I' as variable names) issue. Since I couldn't figure out what "l" parameters are so I renamed it "l_what" for now. Let me know if you find appropriate variable name. Here is pygrass.raster package documentation.
However, the flake8 problem in F841 (unused-variable) will be addressed next, and noqa:F841 will be applied to them when I work on F841 problem.
I propose raising a separate issue if this needs to be investigated further since I don't have experience with C and "ctypes".
What do you think?