Update a bunch of stubs

This commit is contained in:
Ben Longbons
2015-10-16 13:11:27 -07:00
parent e4a7edb949
commit 56fe787c74
34 changed files with 483 additions and 277 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1 @@
class CertificateError(ValueError): pass