From 46a73bb2e8a5576cf4fbb23ed664ed406c4344d9 Mon Sep 17 00:00:00 2001 From: Ashwini Chaudhary Date: Sat, 12 Aug 2017 05:41:28 +0530 Subject: [PATCH] Added private method _basic_auth_str to stub for requests (#1514) --- third_party/2and3/requests/auth.pyi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third_party/2and3/requests/auth.pyi b/third_party/2and3/requests/auth.pyi index 8eea2b0e0..b73aa7047 100644 --- a/third_party/2and3/requests/auth.pyi +++ b/third_party/2and3/requests/auth.pyi @@ -1,6 +1,6 @@ # Stubs for requests.auth (Python 3) -from typing import Any +from typing import Any, Text, Union from . import compat from . import cookies from . import utils @@ -14,6 +14,8 @@ codes = status_codes.codes CONTENT_TYPE_FORM_URLENCODED = ... # type: Any CONTENT_TYPE_MULTI_PART = ... # type: Any +def _basic_auth_str(username: Union[bytes, Text], password: Union[bytes, Text]) -> str: ... + class AuthBase: def __call__(self, r): ...