Skip to content

Commit 607bb9c

Browse files
authored
(fix): remove @wraps(BaseException.add_note) (#3477)
1 parent 90cbc79 commit 607bb9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ test-full = [
111111
"scanpy[dask-ml]",
112112
]
113113
doc = [
114-
"sphinx>=7",
114+
# https://github.com/sphinx-doc/sphinx/issues/13366
115+
"sphinx>=7,<8.2.0",
115116
"sphinx-book-theme>=1.1.0",
116117
"scanpydoc>=0.14.1",
117118
"sphinx-autodoc-typehints>=1.25.2",

src/scanpy/_compat.py

-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def old_positionals(*old_positionals: str):
108108

109109
if sys.version_info >= (3, 11):
110110

111-
@wraps(BaseException.add_note)
112111
def add_note(exc: BaseException, note: str) -> None:
113112
exc.add_note(note)
114113
else:

0 commit comments

Comments
 (0)