From a1842fb0af84dc6357904abc1d0332f925bbee28 Mon Sep 17 00:00:00 2001 From: Ekaterina Tuzova Date: Tue, 17 May 2016 13:13:57 +0300 Subject: [PATCH] PY-15307 Numpy: TypeChecker: fals positive when passing new array shape as two ints to resize method --- python/helpers/pycharm_generator_utils/constants.py | 3 ++- python/helpers/required_gen_version | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/python/helpers/pycharm_generator_utils/constants.py b/python/helpers/pycharm_generator_utils/constants.py index a4fa090c1e06..066cc1c4cc39 100644 --- a/python/helpers/pycharm_generator_utils/constants.py +++ b/python/helpers/pycharm_generator_utils/constants.py @@ -6,7 +6,7 @@ import string import time # !!! Don't forget to update VERSION and required_gen_version if necessary !!! -VERSION = "1.142" +VERSION = "1.143" OUT_ENCODING = 'utf-8' @@ -532,6 +532,7 @@ PREDEFINED_MOD_CLASS_SIGS = { #TODO: user- ("numpy.random.mtrand", None, "rand"): ("(*dn)", None), ("numpy.random.mtrand", None, "randn"): ("(*dn)", None), ("numpy.core.multiarray", "ndarray", "reshape"): ("(self, shape, *shapes, order='C')", None), + ("numpy.core.multiarray", "ndarray", "resize"): ("(self, *new_shape, refcheck=True)", None), } bin_collections_names = ['collections', '_collections'] diff --git a/python/helpers/required_gen_version b/python/helpers/required_gen_version index d3ec5285e4d4..b424e69dd84b 100644 --- a/python/helpers/required_gen_version +++ b/python/helpers/required_gen_version @@ -47,4 +47,4 @@ h5py.h5i 1.127 h5py.h5g 1.127 numpy.random.mtrand 1.140 -numpy.core.multiarray 1.142 \ No newline at end of file +numpy.core.multiarray 1.143 \ No newline at end of file