Browse Source

🎨 Add missing type definition

pull/11/head
Sebastián Ramírez 6 years ago
parent
commit
4a0316bcfe
  1. 5
      fastapi/security/utils.py

5
fastapi/security/utils.py

@ -1,4 +1,7 @@
def get_authorization_scheme_param(authorization_header_value: str):
from typing import Tuple
def get_authorization_scheme_param(authorization_header_value: str) -> Tuple[str, str]:
if not authorization_header_value:
return "", ""
scheme, _, param = authorization_header_value.partition(" ")

Loading…
Cancel
Save