From df905102da05e99e7e7cd6cd0a1e3ddea2eddba2 Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Mon, 25 Jul 2022 17:17:52 -0400 Subject: [PATCH] Add more urllib3.__init__ annotations (#8402) --- stubs/urllib3/urllib3/__init__.pyi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/stubs/urllib3/urllib3/__init__.pyi b/stubs/urllib3/urllib3/__init__.pyi index 136db437f..12ca61031 100644 --- a/stubs/urllib3/urllib3/__init__.pyi +++ b/stubs/urllib3/urllib3/__init__.pyi @@ -1,10 +1,11 @@ import logging -from typing import Any +from typing import TextIO from . import connectionpool, filepost, poolmanager, response from .util import request as _request, retry, timeout, url -__license__: Any +__author__: str +__license__: str __version__: str HTTPConnectionPool = connectionpool.HTTPConnectionPool @@ -23,5 +24,5 @@ Retry = retry.Retry class NullHandler(logging.Handler): def emit(self, record): ... -def add_stderr_logger(level=...): ... +def add_stderr_logger(level: int = ...) -> logging.StreamHandler[TextIO]: ... def disable_warnings(category: type[Warning] = ...) -> None: ...