From: Vladimír Vondruš Date: Thu, 19 Sep 2024 15:34:55 +0000 (+0200) Subject: documentation/python: fill property.type_link and param.default always. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=6b03faa2cbe2e4890aeddf2e0fffd7c9de67a6b4;p=blog.git documentation/python: fill property.type_link and param.default always. Also not sure what that commented-out return was about. --- diff --git a/documentation/python.py b/documentation/python.py index 645f5655..511feb30 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -1718,6 +1718,7 @@ def extract_function_doc(state: State, parent, entry: Empty) -> List[Any]: param = Empty() param.name = '...' param.type, param.type_link = None, None + param.default = None out.params = [param] out.type, out.type_link = None, None param_names = [] @@ -1881,8 +1882,7 @@ def extract_property_doc(state: State, parent, entry: Empty): out.is_gettable = True out.is_settable = False out.is_deletable = False - out.type = None - #return out + out.type, out.type_link = None, None # Otherwise it's a classic property else: