Skip to content

Commit

Permalink
use f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheltienne committed Nov 26, 2024
1 parent 0643b71 commit 576acf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> Optional[str]:

# retrieve start/stop lines
source, start_line = inspect.getsourcelines(pyobject)
lines = "L%d-L%d" % (start_line, start_line + len(source) - 1)
lines = f"L{start_line}-L{start_line + len(source) - 1}"

# create URL
if "dev" in release:
Expand Down

0 comments on commit 576acf2

Please sign in to comment.