chiark / gitweb /
documentation/python: fill property.type_link and param.default always.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 19 Sep 2024 15:34:55 +0000 (17:34 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 28 Sep 2024 01:25:37 +0000 (03:25 +0200)
Also not sure what that commented-out return was about.

documentation/python.py

index 645f5655d5d850970b954bb3ef8f45e148a81669..511feb301089e36ed4276665fe418ad984c66780 100755 (executable)
@@ -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: