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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-http_request
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Python http response utils.
5
5
  Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-http_request
6
6
  License: MIT
@@ -2,7 +2,7 @@
2
2
  # encoding: utf-8
3
3
 
4
4
  __author__ = "ChenyangGao <https://chenyanggao.github.io>"
5
- __version__ = (0, 0, 3)
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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-http_request"
3
- version = "0.0.3"
3
+ version = "0.0.4"
4
4
  description = "Python http response utils."
5
5
  authors = ["ChenyangGao <wosiwujm@gmail.com>"]
6
6
  license = "MIT"