mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Added private method _basic_auth_str to stub for requests (#1514)
This commit is contained in:
committed by
Jelle Zijlstra
parent
4f14617db1
commit
46a73bb2e8
4
third_party/2and3/requests/auth.pyi
vendored
4
third_party/2and3/requests/auth.pyi
vendored
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user