Uh oh!
There was an error while loading. Please reload this page.
Constants Addition -- pi, newaxis, nan, inf - #18
Conversation
roaffix
commented
Apr 21, 2024
Is it a spec of 2022? |
AzeezIsh
commented
Apr 23, 2024
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
c8b8fcfCompareAzeezIsh
commented
Apr 23, 2024
I just passed them all on the _constants file. Should be good! |
roaffix
commented
Apr 23, 2024
roaffix
commented
Apr 23, 2024
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 |
roaffix
commented
Apr 23, 2024
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 |
AzeezIsh
commented
Apr 23, 2024
Hopefully it's good now! Mypy is failing in other places that I haven't touched |
roaffix
commented
Apr 23, 2024
what kind of issue with mypy? |
AzeezIsh
commented
Apr 24, 2024
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 |
roaffix
commented
Apr 24, 2024
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. |
AzeezIsh
commented
Apr 30, 2024
(.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? |
* Added tests for identity matrix function * Fixed test_identity_invalid_shape() method * Fixed import formatting, black and flake8 automatic checks --------- Co-authored-by: Chaluvadi <saketh.chaluvadi@intel.com>



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