Skip to content

Commit

Permalink
Don't try to index __init__ methods
Browse files Browse the repository at this point in the history
These aren't linked anywhere, and cause sphinx warnings because we have multiple __init__ methods for MANY classes
  • Loading branch information
nyalldawson committed Aug 27, 2024
1 parent e26a73c commit fbffe0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions process_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def process_docstring(app, what, name, obj, options, lines):
lines_out.append(
re.sub(rf"\b{class_name}\(", ".. py:method:: __init__(", line)
)
lines_out.append(" :noindex:")
lines_out.append("")
else:
lines_out.append(" " + line)
Expand Down

0 comments on commit fbffe0d

Please sign in to comment.