diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-18 16:18:43 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-01-18 21:07:19 +0100 |
commit | 4121134b21e39fa1bc488b58d4324b3f9ba05a04 (patch) | |
tree | 001bec160641091b65976ffe5ab297a732f43f98 /doc/source | |
parent | 0013550dccc2de2150dd4c1f92340ed9273a521e (diff) | |
download | numpy-4121134b21e39fa1bc488b58d4324b3f9ba05a04.tar.gz |
DOC: Ignore attribute FutureWarning in doc build
The docs somehow seem to access `numpy.str`, etc. during the autodoc
generation probably.
This adds a specific warning filter to hide it.
Closes gh-22987
Diffstat (limited to 'doc/source')
-rw-r--r-- | doc/source/conf.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index bc0b4df8c..79c33b756 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -62,6 +62,13 @@ def replace_scalar_type_names(): replace_scalar_type_names() + +# As of NumPy 1.25, a deprecation of `str`/`bytes` attributes happens. +# For some reasons, the doc build accesses these, so ignore them. +import warnings +warnings.filterwarnings("ignore", "In the future.*NumPy scalar", FutureWarning) + + # ----------------------------------------------------------------------------- # General configuration # ----------------------------------------------------------------------------- |