Skip to content

Commit 14c15d8

Browse files
committed
Update sphinx docs to remove partial use
1 parent 784246d commit 14c15d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# https://www.sphinx-doc.org/en/master/usage/configuration.html
33

44
import contextlib
5-
import functools
65
import logging
76
import os.path
87
import shutil
@@ -194,7 +193,9 @@ def setup(app: Sphinx) -> None:
194193

195194

196195
# -- Options for the linkcode extension --------------------------------------
197-
linkcode_resolve = functools.partial(utils.linkcode_resolve, REPO_LINK)
196+
def linkcode_resolve(domain: str, info: dict) -> str | None:
197+
"""Determine the URL corresponding to Python object."""
198+
return utils.linkcode_resolve(REPO_LINK, domain, info)
198199

199200

200201
# -- Options for releases extension ------------------------------------------

0 commit comments

Comments
 (0)