python 3.4 - Pycharm unresolved attribute reference warning -
please consider following code:
import numpy np r = [1, 0, -1, 0] bins = np.fft.fft(r) / len(r) x = bins.view(float)
given above code pycharm returns warning: unresolved attribute reference 'view' class 'int'
if split line 4 2 lines like
bins = np.fft.fft(r) bins = bins / len(r)
, same warning appears. following not throw warning:
bins = np.fft.fft(r) bins /= len(r)
why pycharm treat bins
of type int
in first 2 versions , how , why augmented assignment change behavior?
i running pycharm 4.5.1 community edition on yosemite.
Comments
Post a Comment