chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b03faa
)
documentation/python: this variable is set in both branches below.
author
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 19 Sep 2024 16:16:39 +0000
(18:16 +0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Sat, 28 Sep 2024 01:25:37 +0000
(
03:25
+0200)
No need to have it set before at all, this makes it more error-prone.
documentation/python.py
patch
|
blob
|
history
diff --git
a/documentation/python.py
b/documentation/python.py
index 511feb301089e36ed4276665fe418ad984c66780..088ed138bfca4e045442031af2736fa9bbb378d2 100755
(executable)
--- a/
documentation/python.py
+++ b/
documentation/python.py
@@
-1508,8
+1508,6
@@
def extract_function_doc(state: State, parent, entry: Empty) -> List[Any]:
if not state.config['SEARCH_DISABLED']:
page_url = state.name_map['.'.join(entry.path[:-1])].url
- overloads = []
-
# Extract the signature from the docstring for pybind11, since it can't
# expose it to the metadata: https://github.com/pybind/pybind11/issues/990
# What's not solvable with metadata, however, are function overloads ---