Add some third_party modules.

backports_abc and singledispatch were made with stubgen, certifi was
written by hand, and ssl_match_hostname was copied from ssl.pyi.
This commit is contained in:
Ben Darnell
2016-01-16 16:56:25 -05:00
parent b7b7da1a85
commit 1626c25087
5 changed files with 29 additions and 0 deletions

View File

View File

@@ -0,0 +1,3 @@
class CertificateError(ValueError): ...
def match_hostname(cert, hostname): ...

19
third_party/2and3/backports_abc.pyi vendored Normal file
View File

@@ -0,0 +1,19 @@
# Stubs for backports_abc (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
def mk_gen(): ...
def mk_awaitable(): ...
def mk_coroutine(): ...
Generator = ... # type: Any
Awaitable = ... # type: Any
Coroutine = ... # type: Any
def isawaitable(obj): ...
PATCHED = ... # type: Any
def patch(patch_inspect=True): ...

2
third_party/2and3/certifi.pyi vendored Normal file
View File

@@ -0,0 +1,2 @@
def where() -> str: ...
def old_where() -> str: ...

5
third_party/2and3/singledispatch.pyi vendored Normal file
View File

@@ -0,0 +1,5 @@
# Stubs for singledispatch (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
def singledispatch(func): ...