mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 14:01:55 +08:00
Update pyright (#6840)
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
import datetime
|
||||
from json import JSONDecoder
|
||||
from typing import Any, Callable, Iterator, Text, Type
|
||||
from typing import Any, Callable, Iterator, Text, Type, TypeVar
|
||||
|
||||
from . import auth, cookies, exceptions, hooks, status_codes, structures, utils
|
||||
from .cookies import RequestsCookieJar
|
||||
from .packages.urllib3 import exceptions as urllib3_exceptions, fields, filepost, util
|
||||
|
||||
_VT = TypeVar("_VT")
|
||||
|
||||
default_hooks = hooks.default_hooks
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict[_VT]
|
||||
HTTPBasicAuth = auth.HTTPBasicAuth
|
||||
cookiejar_from_dict = cookies.cookiejar_from_dict
|
||||
get_cookie_header = cookies.get_cookie_header
|
||||
|
||||
@@ -5,6 +5,9 @@ from . import adapters, auth as _auth, compat, cookies, exceptions, hooks, model
|
||||
from .models import Response
|
||||
from .packages.urllib3 import _collections
|
||||
|
||||
_KT = TypeVar("_KT")
|
||||
_VT = TypeVar("_VT")
|
||||
|
||||
_BaseAdapter = adapters.BaseAdapter
|
||||
OrderedDict = compat.OrderedDict
|
||||
cookiejar_from_dict = cookies.cookiejar_from_dict
|
||||
@@ -23,8 +26,8 @@ TooManyRedirects = exceptions.TooManyRedirects
|
||||
InvalidSchema = exceptions.InvalidSchema
|
||||
ChunkedEncodingError = exceptions.ChunkedEncodingError
|
||||
ContentDecodingError = exceptions.ContentDecodingError
|
||||
RecentlyUsedContainer = _collections.RecentlyUsedContainer
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict
|
||||
RecentlyUsedContainer = _collections.RecentlyUsedContainer[_KT, _VT]
|
||||
CaseInsensitiveDict = structures.CaseInsensitiveDict[_VT]
|
||||
HTTPAdapter = adapters.HTTPAdapter
|
||||
requote_uri = utils.requote_uri
|
||||
get_environ_proxies = utils.get_environ_proxies
|
||||
|
||||
Reference in New Issue
Block a user