chiark / gitweb /
documentation/python: this variable is set in both branches below.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 19 Sep 2024 16:16:39 +0000 (18:16 +0200)
committerVladimí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

index 511feb301089e36ed4276665fe418ad984c66780..088ed138bfca4e045442031af2736fa9bbb378d2 100755 (executable)
@@ -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 ---