From 6a48e3e6b3b9afb6f54fde0a8b463bdc5488c7f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 19 Sep 2024 18:16:39 +0200 Subject: [PATCH] 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. --- documentation/python.py | 2 -- 1 file changed, 2 deletions(-) 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 --- -- 2.30.2