mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
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:
0
third_party/2and3/backports/__init__.pyi
vendored
Normal file
0
third_party/2and3/backports/__init__.pyi
vendored
Normal file
3
third_party/2and3/backports/ssl_match_hostname.pyi
vendored
Normal file
3
third_party/2and3/backports/ssl_match_hostname.pyi
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
class CertificateError(ValueError): ...
|
||||
|
||||
def match_hostname(cert, hostname): ...
|
||||
19
third_party/2and3/backports_abc.pyi
vendored
Normal file
19
third_party/2and3/backports_abc.pyi
vendored
Normal 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
2
third_party/2and3/certifi.pyi
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
def where() -> str: ...
|
||||
def old_where() -> str: ...
|
||||
5
third_party/2and3/singledispatch.pyi
vendored
Normal file
5
third_party/2and3/singledispatch.pyi
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# Stubs for singledispatch (Python 3.5)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
def singledispatch(func): ...
|
||||
Reference in New Issue
Block a user