Added private method _basic_auth_str to stub for requests (#1514)

This commit is contained in:
Ashwini Chaudhary
2017-08-12 05:41:28 +05:30
committed by Jelle Zijlstra
parent 4f14617db1
commit 46a73bb2e8

View File

@@ -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): ...