'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?
0
You can press Alt-Enter on the "unresolved reference" message and select "Ignore unresolved reference 'normal'".
0
Avatar
Permanently deleted user
That works. Thanks.
0

请先登录再写评论。