Fixed the documentation of the AuthState class and the UnauthorizedException exception.

This commit is contained in:
依瑪貓 2022-12-07 16:08:07 +08:00
parent 46f05a1022
commit c004e28c37

View File

@ -422,11 +422,13 @@ class AuthState:
def __init__(self): def __init__(self):
"""Constructs the authorization state.""" """Constructs the authorization state."""
self.opaque: t.Optional[str] = None self.opaque: t.Optional[str] = None
"""The opaque."""
self.stale: t.Optional[bool] = None self.stale: t.Optional[bool] = None
"""The stale."""
class UnauthorizedException(Exception): class UnauthorizedException(Exception):
"""The exception thrown when the authentication is failed.""" """The exception thrown when the authorization fails."""
pass pass