From 7da7789a6508a60d0ad7662ac69bcee9c478c239 Mon Sep 17 00:00:00 2001 From: Bas van Beek Date: Mon, 25 Jan 2021 11:59:46 +0100 Subject: TST: Fix two failing typing tests Mypy 0.800 changed one of its error messages; the `fail` tests have now been altered to reflect this change --- numpy/typing/tests/data/fail/array_constructors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/numpy/typing/tests/data/fail/array_constructors.py b/numpy/typing/tests/data/fail/array_constructors.py index 9cb59fe5f..f13fdacb2 100644 --- a/numpy/typing/tests/data/fail/array_constructors.py +++ b/numpy/typing/tests/data/fail/array_constructors.py @@ -7,10 +7,10 @@ np.require(a, requirements=1) # E: No overload variant np.require(a, requirements="TEST") # E: incompatible type np.zeros("test") # E: incompatible type -np.zeros() # E: Too few arguments +np.zeros() # E: Missing positional argument np.ones("test") # E: incompatible type -np.ones() # E: Too few arguments +np.ones() # E: Missing positional argument np.array(0, float, True) # E: Too many positional -- cgit v1.2.1