'cannot find reference' warning due to dynamic dispatch

  • 2
  • 12

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?
You can press Alt-Enter on the "unresolved reference" message and select "Ignore unresolved reference 'normal'".
--
Dmitry Jemerov, Chief Technology Officer, JetBrains

That works. Thanks.