File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,18 @@ def get_keyword_doc(keyword):
122122 title = keyword .name .strip ("*" ).strip ()
123123 title_html = f"<strong>{ title } </strong>"
124124 if keyword .args :
125- title += " " + ", " .join (keyword .args )
126- title_html += " " + ", " .join (keyword .args )
125+ try :
126+ title += " " + ", " .join (keyword .args )
127+ title_html += " " + ", " .join (keyword .args )
128+ except TypeError : # RF >= 4.0
129+ # TODO: Include default values and typing
130+ args = (
131+ keyword .args .positional_only
132+ + keyword .args .named_only
133+ + keyword .args .positional_or_named
134+ )
135+ title += " " + ", " .join (args )
136+ title_html += " " + ", " .join (args )
127137 body = ""
128138 if keyword .doc :
129139 if isinstance (keyword .doc , Documentation ):
You can’t perform that action at this time.
0 commit comments