harbor run -t openthoughts/tasktrove-exp-rpt-issue-issue-1840harbor download openthoughts/tasktrove-exp-rpt-issue-issue-1840Title: Handle position-only parameters in init so autodoc parses attribute docstrings
Problem description
Before state (pre-fix)
# sphinx/pycode/parser.py (excerpt)
def get_self(self) -> Optional[ast.arg]:
"""Returns the name of the first argument if in a function."""
if self.current_function and self.current_function.args.args:
return self.current_function.args.args[0]
else:
return None
What you need to implement (self-contained task)
Notes