Q: How can I fix the bug where Pychram warns about numpy.ndarray
attributes?
The code runs with no problem, however pycharm keeps giving this warning
Unresolved attribute reference 'astype' for class 'ndarray'
Its not only this but other methods such as .tolist()
, and np.sum()
.
I am using python 3.9.7
I hope to solve it permanently