diff --git a/pyproject.toml b/pyproject.toml index 7ba5bd70c6..c7cd71fd9d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,7 +111,8 @@ test-full = [ "scanpy[dask-ml]", ] doc = [ - "sphinx>=7", + # https://github.com/sphinx-doc/sphinx/issues/13366 + "sphinx>=7,<8.2.0", "sphinx-book-theme>=1.1.0", "scanpydoc>=0.14.1", "sphinx-autodoc-typehints>=1.25.2", diff --git a/src/scanpy/_compat.py b/src/scanpy/_compat.py index 9ea7780b0d..68bacb7bcc 100644 --- a/src/scanpy/_compat.py +++ b/src/scanpy/_compat.py @@ -108,7 +108,6 @@ def old_positionals(*old_positionals: str): if sys.version_info >= (3, 11): - @wraps(BaseException.add_note) def add_note(exc: BaseException, note: str) -> None: exc.add_note(note) else: