diff options
Diffstat (limited to 'numpy/__init__.py')
| -rw-r--r-- | numpy/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/__init__.py b/numpy/__init__.py index fc0d4437e..a756d07a8 100644 --- a/numpy/__init__.py +++ b/numpy/__init__.py @@ -262,9 +262,9 @@ else: # And future warnings for those that will change, but also give # the AttributeError warnings.warn( - "In the future the attribute `%s` will be defined as the " + f"In the future `np.{attr}` will be defined as the " "corresponding NumPy scalar. (This may have returned Python " - "scalars in past versions.", FutureWarning) + "scalars in past versions.", FutureWarning, stacklevel=2) # Importing Tester requires importing all of UnitTest which is not a # cheap import Since it is mainly used in test suits, we lazy import it |
