mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-15295 Numpy: allow passing list arguments for tuple expected types
treat all collections as iterable
This commit is contained in:
@@ -71,7 +71,11 @@ public class NumpyDocStringTypeProvider extends PyTypeProviderBase {
|
||||
// 3 occurrences
|
||||
NUMPY_ALIAS_TO_REAL_TYPE.put("number", "int or long or float or complex");
|
||||
|
||||
//treat all collections as iterable
|
||||
NUMPY_ALIAS_TO_REAL_TYPE.put("sequence", "collections.Iterable");
|
||||
NUMPY_ALIAS_TO_REAL_TYPE.put("set", "collections.Iterable");
|
||||
NUMPY_ALIAS_TO_REAL_TYPE.put("list", "collections.Iterable");
|
||||
NUMPY_ALIAS_TO_REAL_TYPE.put("tuple", "collections.Iterable");
|
||||
|
||||
NUMPY_ALIAS_TO_REAL_TYPE.put("ints", "int");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user