mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed numpy tests
This commit is contained in:
@@ -173,9 +173,13 @@ public class NumpyDocStringTypeProvider extends PyTypeProviderBase {
|
||||
@Nullable
|
||||
private static PyType parseSingleNumpyDocType(@NotNull PsiElement anchor, @NotNull String typeString) {
|
||||
final PyPsiFacade facade = getPsiFacade(anchor);
|
||||
typeString = getNumpyRealTypeName(typeString);
|
||||
final String realTypeName = getNumpyRealTypeName(typeString);
|
||||
PyType type = facade.parseTypeAnnotation(realTypeName, anchor);
|
||||
if (type != null) {
|
||||
return type;
|
||||
}
|
||||
|
||||
final PyType type = facade.parseTypeAnnotation(typeString, anchor);
|
||||
type = facade.parseTypeAnnotation(typeString, anchor);
|
||||
if (type != null) {
|
||||
return type;
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
def ones(shape, dtype=None, order='C')
|
||||
Inferred type: (shape: <a href="psi_element://#typename#int">int</a>, dtype: <a href="psi_element://#typename#object">object</a>, order: <a href="psi_element://#typename#str">str</a>) -> ndarray<br>
|
||||
Inferred type: (shape: Union[<a href="psi_element://#typename#int">int</a>, Iterable[<a href="psi_element://#typename#int">int</a>]], dtype: <a href="psi_element://#typename#object">object</a>, order: <a href="psi_element://#typename#str">str</a>) -> ndarray<br>
|
||||
Reference in New Issue
Block a user