From 9ee15bc46406da2f828a79bc6c4c74971761fdeb Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Fri, 29 May 2020 13:02:58 +0100 Subject: Revert "DOC: Update assert_warns parameter list" --- numpy/testing/_private/utils.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/numpy/testing/_private/utils.py b/numpy/testing/_private/utils.py index f8789af90..4097a6738 100644 --- a/numpy/testing/_private/utils.py +++ b/numpy/testing/_private/utils.py @@ -1768,10 +1768,12 @@ def assert_warns(warning_class, *args, **kwargs): ---------- warning_class : class The class defining the warning that `func` is expected to throw. - \\*args : List of function and arguments - `func` and arguments for `func`. + func : callable + The callable to test. + \\*args : Arguments + Arguments passed to `func`. \\*\\*kwargs : Kwargs - Keyword arguments for `func`. + Keyword arguments passed to `func`. Returns ------- -- cgit v1.2.1