From 09992482c93f1b9e28b7958a792e6b3b709834fa Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Sat, 24 Nov 2018 20:59:42 +0100 Subject: Use set litterals --- numpy/core/shape_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/shape_base.py') diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index 6d234e527..a529d2ad7 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -410,7 +410,7 @@ def stack(arrays, axis=0, out=None): if not arrays: raise ValueError('need at least one array to stack') - shapes = set(arr.shape for arr in arrays) + shapes = {arr.shape for arr in arrays} if len(shapes) != 1: raise ValueError('all input arrays must have the same shape') -- cgit v1.2.1