Skip to content

Commit

Permalink
Fix sphinx autodoc warning (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
MetRonnie authored Feb 26, 2024
1 parent 7c53074 commit 2141402
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cylc/uiserver/authorise.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ class CylcAuthorizer(Authorizer):
"""

# This is here just to fix sphinx autodoc warning from traitlets' __init__
# see https://github.com/cylc/cylc-uiserver/pull/560
def __init__(*args, **kwargs):
super().__init__(*args, **kwargs)

def is_authorized(self, handler, user, action, resource) -> bool:
"""Allow a user to access their own server.
Expand Down

0 comments on commit 2141402

Please sign in to comment.