From: Vladimír Vondruš Date: Thu, 19 Sep 2024 16:16:39 +0000 (+0200) Subject: documentation/python: this variable is set in both branches below. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=6a48e3e6b3b9afb6f54fde0a8b463bdc5488c7f9;p=blog.git documentation/python: this variable is set in both branches below. No need to have it set before at all, this makes it more error-prone. --- diff --git a/documentation/python.py b/documentation/python.py index 511feb30..088ed138 100755 --- 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 ---