'cannot find reference' warning due to dynamic dispatch Follow
Calls to numpy's random.normal() method causes PyCharm to report a 'cannot find reference' warning because normal is dynamically dispatched at runtime:
import numpy as np
X = np.random.normal(0, 1, n)
I do not wish to disable all 'cannot find reference' warnings, even if that is possible, because such warnings are usually something I want to know about. Is there some elegant Way to satisfy PyCharm so that it does not report this as a warning?
import numpy as np
X = np.random.normal(0, 1, n)
I do not wish to disable all 'cannot find reference' warnings, even if that is possible, because such warnings are usually something I want to know about. Is there some elegant Way to satisfy PyCharm so that it does not report this as a warning?
2 comments
Sort by
Date
Votes

Comment actions
Permalink
You can press Alt-Enter on the "unresolved reference" message and select "Ignore unresolved reference 'normal'".

Comment actions
Permalink
That works. Thanks.
Please sign in to leave a comment.