mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 21:31:09 +08:00
Add more urllib3.__init__ annotations (#8402)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user