chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9cf8d3
)
documentation/python: fill property.type_link and param.default always.
author
Vladimír Vondruš
<mosra@centrum.cz>
Thu, 19 Sep 2024 15:34:55 +0000
(17:34 +0200)
committer
Vladimí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
patch
|
blob
|
history
diff --git
a/documentation/python.py
b/documentation/python.py
index 645f5655d5d850970b954bb3ef8f45e148a81669..511feb301089e36ed4276665fe418ad984c66780 100755
(executable)
--- 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: