PY-15295 Numpy: allow passing list arguments for tuple expected types

treat all collections as iterable
This commit is contained in:
Ekaterina Tuzova
2015-04-02 19:42:29 +03:00
parent 60d853e324
commit ee45301b11
@@ -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");
}