python-http_request 0.0.3__tar.gz → 0.0.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_http_request-0.0.3 → python_http_request-0.0.4}/PKG-INFO +1 -1
- {python_http_request-0.0.3 → python_http_request-0.0.4}/http_request/__init__.py +3 -2
- {python_http_request-0.0.3 → python_http_request-0.0.4}/pyproject.toml +1 -1
- {python_http_request-0.0.3 → python_http_request-0.0.4}/LICENSE +0 -0
- {python_http_request-0.0.3 → python_http_request-0.0.4}/http_request/py.typed +0 -0
- {python_http_request-0.0.3 → python_http_request-0.0.4}/readme.md +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# encoding: utf-8
|
|
3
3
|
|
|
4
4
|
__author__ = "ChenyangGao <https://chenyanggao.github.io>"
|
|
5
|
-
__version__ = (0, 0,
|
|
5
|
+
__version__ = (0, 0, 4)
|
|
6
6
|
__all__ = [
|
|
7
7
|
"SupportsGeturl", "url_origin", "complete_url", "cookies_str_to_dict", "headers_str_to_dict",
|
|
8
8
|
"encode_multipart_data", "encode_multipart_data_async",
|
|
@@ -11,7 +11,7 @@ __all__ = [
|
|
|
11
11
|
from itertools import chain
|
|
12
12
|
from collections.abc import AsyncIterable, AsyncIterator, ItemsView, Iterable, Iterator, Mapping
|
|
13
13
|
from re import compile as re_compile, Pattern
|
|
14
|
-
from typing import Any, Final, Protocol, TypeVar
|
|
14
|
+
from typing import runtime_checkable, Any, Final, Protocol, TypeVar
|
|
15
15
|
from urllib.parse import quote, urlsplit, urlunsplit
|
|
16
16
|
from uuid import uuid4
|
|
17
17
|
|
|
@@ -26,6 +26,7 @@ AnyStr = TypeVar("AnyStr", bytes, str, covariant=True)
|
|
|
26
26
|
CRE_URL_SCHEME: Final = re_compile(r"^(?i:[a-z][a-z0-9.+-]*)://")
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
@runtime_checkable
|
|
29
30
|
class SupportsGeturl(Protocol[AnyStr]):
|
|
30
31
|
def geturl(self) -> AnyStr: ...
|
|
31
32
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|