Browse Source

makerst: Disable making refs for operator methods

As this requires more work to ensure that the refs are valid and unique.
Rémi Verschelde 3 years ago
parent
commit
20b56f557c
1 changed files with 5 additions and 0 deletions
  1. 5 0
      doc/tools/makerst.py

+ 5 - 0
doc/tools/makerst.py

@@ -1053,6 +1053,11 @@ def make_method_signature(
         ret_type = method_def.return_type.to_rst(state)
         ref_type = "method"
 
+    # FIXME: Need to add proper support for operator methods, but generating a unique
+    # and valid ref for them is not trivial.
+    if method_def.name.startswith("operator "):
+        make_ref = False
+
     out = ""
 
     if make_ref: