Skip to content

Commit 3c8bf62

Browse files
committed
Merge pull request #102567 from tetrapod00/add-parentheses
Add parentheses to method links in online class reference
2 parents bc648b4 + 75bb2c5 commit 3c8bf62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/tools/make_rst.py

+2
Original file line numberDiff line numberDiff line change
@@ -2238,6 +2238,8 @@ def format_text_block(
22382238
repl_text = target_name
22392239
if target_class_name != state.current_class:
22402240
repl_text = f"{target_class_name}.{target_name}"
2241+
if tag_state.name == "method":
2242+
repl_text = f"{repl_text}()"
22412243
tag_text = f":ref:`{repl_text}<class_{sanitize_class_name(target_class_name)}{ref_type}_{target_name}>`"
22422244
escape_pre = True
22432245
escape_post = True

0 commit comments

Comments
 (0)