Skip to content

Commit

Permalink
Don't include self in API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cemathey committed May 28, 2024
1 parent c0500b7 commit ab2e1a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rconweb/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def get_api_documentation(request):
for k, v in sig.parameters.items():
if k == "request":
continue
elif k == "self":
continue
expanded_args = {
"default": _get_empty(v.default),
"annotation": _get_empty(v.annotation),
Expand Down

0 comments on commit ab2e1a0

Please sign in to comment.