Files
openide/python/testData/quickdoc/NumPyOnesDoc.html
T
Andrey Vlasovskikh a07b4762d0 Parse "foo, optional" as Union[foo, None] as a workaround for parameters with default values (PY-15298)
It results in false negatives for optional parameters with non-None
default values, but at least we don't need to switch from stubs to AST
in the type checker inspection for every function with optional
parameters.
2015-09-02 20:22:30 +03:00

2 lines
364 B
HTML

def ones(shape, dtype=None, order='C')
Inferred type: (shape:&nbsp;Union[<a href="psi_element://#typename#int">int</a>,&nbsp;Iterable[<a href="psi_element://#typename#int">int</a>]],&nbsp;dtype:&nbsp;Optional[<a href="psi_element://#typename#object">object</a>],&nbsp;order:&nbsp;Optional[<a href="psi_element://#typename#str">str</a>])&nbsp;-&gt;&nbsp;ndarray<br>