-
Notifications
You must be signed in to change notification settings - Fork 4
Constants Addition -- pi, newaxis, nan, inf #18
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
base: master
Are you sure you want to change the base?
Conversation
Is it a spec of 2022? |
I believe so! The link I provided has "Python array API standard v2022.12" on the header -- https://data-apis.org/array-api/2022.12/API_specification/constants.html#objects-in-api |
We can pass at least black, isort, and flake8 checks. Please, fix the code style. |
6e8a98a
to
c8b8fcf
Compare
I just passed them all on the _constants file. Should be good! |
Quick hack: use |
make command doesn't work. And i've also confirmed that running isort once again on the local file leads to no changes for _constants.py _init.py has to be rebased hold on |
…o pyproject-failures
You could open the failed check and look through the traceback Your commit also affect other files, so the problem can occur not only in constants file |
Hopefully it's good now! Mypy is failing in other places that I haven't touched |
what kind of issue with mypy? |
Bunch of little weird errors, there's a high chance they were already there? It's not required though so the merge should be good |
I run master locally and all is good. So, you should also not have any problems with your local machine. Paste a screen of errors here, so I can check if it's a common cross-platform or PR-related issue. Also, all checks are required TBH, but due to WIP CI status - it is not available on GitHub actions. |
(.venv) aishaqui@aishaqui-mobl:~/ArrayFire/arrayfire-py$ black . All done! ✨ 🍰 ✨ (.venv) aishaqui@aishaqui-mobl:~/ArrayFire/arrayfire-py$ mypy . |
Just bumping this as I'm working on an ArrayFire API example. My previous merge request also had the same issues with MyPy, so it might just be appearing specific to my local machine. Anything else I could do on my end? |
Addition to _constants.py to reflect Array API Standards. Amended __init.py as well accordingly.
Link reference below:
https://data-apis.org/array-api/2022.12/API_specification/constants.html#objects-in-api