mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Update a bunch of stubs
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Stubs for requests.packages.urllib3.connection (Python 3.4)
|
||||
|
||||
from typing import Any
|
||||
from httplib import HTTPException
|
||||
from . import packages
|
||||
from . import exceptions
|
||||
from . import util
|
||||
@@ -46,3 +47,5 @@ class VerifiedHTTPSConnection(HTTPSConnection):
|
||||
def connect(self): ...
|
||||
|
||||
UnverifiedHTTPSConnection = ... # type: Any
|
||||
|
||||
class ConnectionError(Exception): pass
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from ssl import SSLError as BaseSSLError
|
||||
from . import exceptions
|
||||
from .packages import ssl_match_hostname
|
||||
from . import packages
|
||||
@@ -32,7 +33,6 @@ HTTPConnection = connection.HTTPConnection
|
||||
HTTPSConnection = connection.HTTPSConnection
|
||||
VerifiedHTTPSConnection = connection.VerifiedHTTPSConnection
|
||||
HTTPException = connection.HTTPException
|
||||
BaseSSLError = connection.BaseSSLError
|
||||
ConnectionError = connection.ConnectionError
|
||||
RequestMethods = request.RequestMethods
|
||||
HTTPResponse = response.HTTPResponse
|
||||
|
||||
1
third_party/2.7/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyi
vendored
Normal file
1
third_party/2.7/requests/packages/urllib3/packages/ssl_match_hostname/__init__.pyi
vendored
Normal file
@@ -0,0 +1 @@
|
||||
class CertificateError(ValueError): pass
|
||||
Reference in New Issue
Block a user