From 68f20a4a23d0042e8d0c84726e8e2467a6741cb3 Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Fri, 5 Aug 2022 07:32:40 -0400 Subject: [PATCH] Add `requests.help` submodule (#8486) --- stubs/requests/requests/help.pyi | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 stubs/requests/requests/help.pyi diff --git a/stubs/requests/requests/help.pyi b/stubs/requests/requests/help.pyi new file mode 100644 index 000000000..e58cb3a8c --- /dev/null +++ b/stubs/requests/requests/help.pyi @@ -0,0 +1,34 @@ +from typing_extensions import TypedDict + +class _VersionDict(TypedDict): + version: str + +class _OptionalVersionDict(TypedDict): + version: str | None + +class _PlatformDict(TypedDict): + system: str + release: str + +class _ImplementationDict(_VersionDict): + name: str + +class _PyOpenSSLDict(_OptionalVersionDict): + openssl_version: str + +class _InfoDict(TypedDict): + platform: _PlatformDict + implementation: _ImplementationDict + system_ssl: _VersionDict + using_pyopenssl: bool + using_charset_normalizer: bool + pyOpenSSL: _PyOpenSSLDict + urllib3: _VersionDict + chardet: _OptionalVersionDict + charset_normalizer: _OptionalVersionDict + cryptography: _VersionDict + idna: _VersionDict + requests: _VersionDict + +def info() -> _InfoDict: ... +def main() -> None: ...