'cannot find reference' warning due to dynamic dispatch
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 条评论
排序方式
日期
投票数
You can press Alt-Enter on the "unresolved reference" message and select "Ignore unresolved reference 'normal'".
That works. Thanks.
请先登录再写评论。