mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-15282 Numpy: Function doesn't return anything: false positive for tensordot
function could return value even if it's not declared
This commit is contained in:
@@ -91,8 +91,7 @@ public class NumpyDocStringTypeProvider extends PyTypeProviderBase {
|
||||
final PyPsiFacade facade = getPsiFacade(function);
|
||||
switch (returns.size()) {
|
||||
case 0:
|
||||
// Function returns nothing
|
||||
return facade.parseTypeAnnotation("None", function);
|
||||
return null;
|
||||
case 1:
|
||||
// Function returns single value
|
||||
final String typeName = returns.get(0).getType();
|
||||
|
||||
Reference in New Issue
Block a user