Repository navigation
Fix rasterio rowcol operation return type - #16352
Conversation
This comment has been minimized.
This comment has been minimized.
364da14 to
afdb012
Compare
This comment has been minimized.
This comment has been minimized.
|
I don't think all the extra Use and for the existing
You can remove all the extra overloads. This should address the issue. |
|
Updated to use a defaulted type variable and removed the extra overloads as suggested. I also applied the same simplification to |
This comment has been minimized.
This comment has been minimized.
c57c34c to
6f7eb6e
Compare
|
Removed the added regression tests, kept the typing-only change, and rebased onto current main. The targeted rasterio stub suite passes across pre-commit, structure, Pyright, ty, pyrefly, and mypy. |
This comment has been minimized.
This comment has been minimized.
6f7eb6e to
08b853b
Compare
|
Apologies for the delayed follow-up. I have rebased the branch onto current main while preserving the requested simplification and removal of the regression-test files. The targeted rasterio suite now passes locally across pre-commit, repository structure, Pyright, ty, pyrefly, and mypy. The updated branch is ready for another look when convenient. |
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
|
@JelleZijlstra can we merge this? |
|
@thomas-maschler I think non-maintainers should also be able to review and approve PRs here. It definitely helps us if common contributors (who often have more experience than us for third-party libraries) do that. So please feel free to review and mark as "approved" if you think a PR is ready! |
|
@srittau happy to help. I didn't have the option to approve this PR. |
|
@thomas-maschler Too bad, I know it used to be possible, and the repository settings also allow it. Maybe that function has been disabled python org-wide. That said, a LGTM or similar will also do the job. (And your review above was certainly very helpful!) |
Closes #16342.
Preserve the default integer result while propagating a custom operation's return type through
rowcolandindex.Agent used: OpenAI Codex.