Fix the return type of a method.

pull/7261/head
Patrick Cloke 2020-04-14 13:26:22 -04:00
parent 4d84aa5d3a
commit f1b6c23da7
1 changed files with 3 additions and 1 deletions

View File

@ -485,7 +485,9 @@ class AuthHandler(BaseHandler):
sess = self._get_session_info(session_id)
return sess.setdefault("serverdict", {}).get(key, default)
async def _check_auth_dict(self, authdict: Dict[str, Any], clientip: str) -> str:
async def _check_auth_dict(
self, authdict: Dict[str, Any], clientip: str
) -> Union[Dict[str, Any], str]:
"""Attempt to validate the auth dict provided by a client
Args: