From 5126c221ef4635468c745808daf03ac5c20dda34 Mon Sep 17 00:00:00 2001 From: aamrindersingh Date: Thu, 22 Jan 2026 09:42:01 +0000 Subject: [PATCH] Fix Sphinx nitpicky build with NumPy 2.4+ --- docs/conf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 2dbd91e66..ff91527bb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,6 +43,12 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] intersphinx_mapping = get_intersphinx_mapping(packages={"python", "numpy", "scipy"}) +nitpick_ignore_regex = [ + (r"py:class", r"numpy\._typing\..*"), + (r"py:class", r"numpy\.dtype\[.*\]"), + (r"py:obj", r"numpy\._typing\..*"), +] + # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output