-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
MAINT Replace unsigned char
with uint8_t
in codebase
#29588
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
Comments
I see no reason and I find |
Hello, I've changed the first file according to: "It would be best to open up a PR one-by-one and implement the said change and cimport statement, and then link to the issue here." This is my first time contributing, let me know if there are any issues. Thanks |
@norgera you can change it all at once actually. I noticed the diff shouldn't be too big. |
Notice https://github.com/scikit-learn/scikit-learn/pull/29596/files#diff-dcb6bf0d5b5d5eff1396b54e36697cf407823cbc89cd30bae426b8fdb1141881 won't work as you need to cimport the relevant type. |
Yes I realized that quickly, thank you for the clarification. I will change the rest of the files now |
@adam2392 I believe I have made the necessary changes. Let me know if there's anything I missed Sorry making 2 pr's and multiple commits . I am new to open source and have learned a lot from this. |
In #25572, we defined typedefs for commonly used Cython types throughout the codebase. Running
grep -rl "unsigned char" ./sklearn
, I found the following files containunsigned char
, which could be replaced withuint8_t
from https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/utils/_typedefs.pxd.Is there any reason to leave these asunsigned char
vs replacing them with theuint8_t
to consolidate our types?To address this issue, it would be best to open up a PR one-by-one and implement the said change and cimport statement, and then link to the issue here.
The text was updated successfully, but these errors were encountered: