Skip to content

Commit

Permalink
Backport PR #3477: (fix): remove @wraps(BaseException.add_note) (#3478
Browse files Browse the repository at this point in the history
)

Co-authored-by: Ilan Gold <[email protected]>
  • Loading branch information
meeseeksmachine and ilan-gold authored Feb 21, 2025
1 parent 253dfae commit 14d58b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/scanpy/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 14d58b4

Please sign in to comment.