msgpack-types 0.1.0__tar.gz → 0.3.0__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.
@@ -0,0 +1,40 @@
1
+ Metadata-Version: 2.1
2
+ Name: msgpack-types
3
+ Version: 0.3.0
4
+ Summary: Type stubs for msgpack
5
+ Home-page: https://github.com/sbdchd/msgpack-types
6
+ License: Apache-2.0
7
+ Keywords: msgpack,types,mypy,stubs
8
+ Author: Steve Dignam
9
+ Author-email: steve@dignam.xyz
10
+ Requires-Python: >=3.7,<4.0
11
+ Classifier: License :: OSI Approved :: Apache Software License
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.7
14
+ Classifier: Programming Language :: Python :: 3.8
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Project-URL: Repository, https://github.com/sbdchd/msgpack-types
20
+ Description-Content-Type: text/markdown
21
+
22
+ # msgpack-types [![PyPI](https://img.shields.io/pypi/v/msgpack-types.svg)](https://pypi.org/project/msgpack-types/)
23
+
24
+ > Type stubs for [msgpack](https://github.com/msgpack/msgpack-python)
25
+
26
+ Allows for autocomplete and static typing.
27
+
28
+ ## install
29
+
30
+ ```
31
+ pip install msgpack-types
32
+ ```
33
+
34
+ ## related
35
+
36
+ - <https://github.com/sbdchd/django-types>
37
+ - <https://github.com/sbdchd/djangorestframework-types>
38
+ - <https://github.com/sbdchd/celery-types>
39
+ - <https://github.com/sbdchd/mongo-types>
40
+
@@ -9,3 +9,10 @@ Allows for autocomplete and static typing.
9
9
  ```
10
10
  pip install msgpack-types
11
11
  ```
12
+
13
+ ## related
14
+
15
+ - <https://github.com/sbdchd/django-types>
16
+ - <https://github.com/sbdchd/djangorestframework-types>
17
+ - <https://github.com/sbdchd/celery-types>
18
+ - <https://github.com/sbdchd/mongo-types>
@@ -57,7 +57,7 @@ def unpack(
57
57
  strict_map_key: bool = ...,
58
58
  object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,
59
59
  object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,
60
- list_hook: Optional[[Callable[[List[Any]], Any]]] = ...,
60
+ list_hook: Optional[Callable[[List[Any]], Any]] = ...,
61
61
  unicode_errors: Optional[str] = ...,
62
62
  max_buffer_size: int = ...,
63
63
  ext_hook: Callable[[int, bytes], Any] = ...,
@@ -4,7 +4,7 @@ import datetime
4
4
 
5
5
  class _ExtType(NamedTuple):
6
6
  code: int
7
- code: bytes
7
+ data: bytes
8
8
 
9
9
  class ExtType(_ExtType): ...
10
10
 
@@ -16,7 +16,7 @@ def unpackb(
16
16
  strict_map_key: bool = ...,
17
17
  object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,
18
18
  object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,
19
- list_hook: Optional[[Callable[[List[Any]], Any]]] = ...,
19
+ list_hook: Optional[Callable[[List[Any]], Any]] = ...,
20
20
  unicode_errors: Optional[str] = ...,
21
21
  max_buffer_size: int = ...,
22
22
  ext_hook: Callable[[int, bytes], Any] = ...,
@@ -38,7 +38,7 @@ class Unpacker:
38
38
  strict_map_key: bool = ...,
39
39
  object_hook: Optional[Callable[[Dict[Any, Any]], Any]] = ...,
40
40
  object_pairs_hook: Optional[Callable[[List[Tuple[Any, Any]]], Any]] = ...,
41
- list_hook: Optional[[Callable[[List[Any]], Any]]] = ...,
41
+ list_hook: Optional[Callable[[List[Any]], Any]] = ...,
42
42
  unicode_errors: Optional[str] = ...,
43
43
  max_buffer_size: int = ...,
44
44
  ext_hook: Callable[[int, bytes], Any] = ...,
@@ -78,4 +78,3 @@ class Packer:
78
78
  def bytes(self) -> bytes: ...
79
79
  def reset(self) -> None: ...
80
80
  def getbuffer(self) -> memoryview: ...
81
-
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "msgpack-types"
3
- version = "0.1.0"
3
+ version = "0.3.0"
4
4
  description = "Type stubs for msgpack"
5
5
  repository = "https://github.com/sbdchd/msgpack-types"
6
6
  readme = "README.md"
@@ -1,13 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: msgpack-types
3
- Version: 0.1.0
4
- Summary: Type stubs for msgpack
5
- Home-page: https://github.com/sbdchd/msgpack-types
6
- Author: Steve Dignam
7
- Author-email: steve@dignam.xyz
8
- Keywords: msgpack,types,mypy,stubs
9
- Requires-Python: >=3.7,<4.0
10
- Classifier: License :: OSI Approved :: Apache Software License
11
- Classifier: Programming Language :: Python :: 3
12
- Classifier: Programming Language :: Python :: 3.7
13
- Project-URL: Repository, https://github.com/sbdchd/msgpack-types
@@ -1,24 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- from distutils.core import setup
3
-
4
- packages = \
5
- ['msgpack-stubs']
6
-
7
- package_data = \
8
- {'': ['*']}
9
-
10
- setup_kwargs = {
11
- 'name': 'msgpack-types',
12
- 'version': '0.1.0',
13
- 'description': 'Type stubs for msgpack',
14
- 'long_description': '# msgpack-types [![PyPI](https://img.shields.io/pypi/v/msgpack-types.svg)](https://pypi.org/project/msgpack-types/)\n\n> Type stubs for [msgpack](https://github.com/msgpack/msgpack-python)\n\nAllows for autocomplete and static typing.\n\n## install\n\n```\npip install msgpack-types\n```\n',
15
- 'author': 'Steve Dignam',
16
- 'author_email': 'steve@dignam.xyz',
17
- 'url': 'https://github.com/sbdchd/msgpack-types',
18
- 'packages': packages,
19
- 'package_data': package_data,
20
- 'python_requires': '>=3.7,<4.0',
21
- }
22
-
23
-
24
- setup(**setup_kwargs)
File without changes