mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add requests.__version__; improve requests.__init__ (#8484)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from .__version__ import (
|
||||
__author__ as __author__,
|
||||
__author_email__ as __author_email__,
|
||||
__build__ as __build__,
|
||||
__cake__ as __cake__,
|
||||
__copyright__ as __copyright__,
|
||||
__description__ as __description__,
|
||||
__license__ as __license__,
|
||||
__title__ as __title__,
|
||||
__url__ as __url__,
|
||||
__version__ as __version__,
|
||||
)
|
||||
from .api import (
|
||||
delete as delete,
|
||||
get as get,
|
||||
@@ -27,13 +36,4 @@ from .models import PreparedRequest as PreparedRequest, Request as Request, Resp
|
||||
from .sessions import Session as Session, session as session
|
||||
from .status_codes import codes as codes
|
||||
|
||||
__title__: Any
|
||||
__build__: Any
|
||||
__license__: Any
|
||||
__copyright__: Any
|
||||
__version__: Any
|
||||
|
||||
class NullHandler(logging.Handler):
|
||||
def emit(self, record): ...
|
||||
|
||||
def check_compatibility(urllib3_version: str, chardet_version: str | None, charset_normalizer_version: str | None) -> None: ...
|
||||
|
||||
10
stubs/requests/requests/__version__.pyi
Normal file
10
stubs/requests/requests/__version__.pyi
Normal file
@@ -0,0 +1,10 @@
|
||||
__title__: str
|
||||
__description__: str
|
||||
__url__: str
|
||||
__version__: str
|
||||
__build__: int
|
||||
__author__: str
|
||||
__author_email__: str
|
||||
__license__: str
|
||||
__copyright__: str
|
||||
__cake__: str
|
||||
Reference in New Issue
Block a user