mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-12-06 21:43:38 +07:00
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.
2 lines
364 B
HTML
2 lines
364 B
HTML
def ones(shape, dtype=None, order='C')
|
|
Inferred type: (shape: Union[<a href="psi_element://#typename#int">int</a>, Iterable[<a href="psi_element://#typename#int">int</a>]], dtype: Optional[<a href="psi_element://#typename#object">object</a>], order: Optional[<a href="psi_element://#typename#str">str</a>]) -> ndarray<br> |