I have the following code:
import numpy as np if __name__ == "__main__": m = np.matrix([[1, 0, 0], [0, 1, 0], [0, 0, 1]]) print(m)
The code works as expected, but PyCharm seems to think that the "matrix" is not callable. See screenshot.

Since the code works, explicitly a โmatrixโ can be called. So what is PyCharm complaining about? Am I wrong here, or is it PyCharm? How to suppress this error?
source share