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

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -