msgpack-types 0.4.0__tar.gz → 0.5.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: msgpack-types
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Type stubs for msgpack
5
5
  Home-page: https://github.com/sbdchd/msgpack-types
6
6
  License: Apache-2.0
@@ -16,6 +16,7 @@ Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
18
  Requires-Dist: msgpack (>=1.1.0,<1.2.0)
19
+ Requires-Dist: typing-extensions (>=4.6.0)
19
20
  Project-URL: Repository, https://github.com/sbdchd/msgpack-types
20
21
  Description-Content-Type: text/markdown
21
22
 
@@ -3,13 +3,13 @@ from __future__ import annotations
3
3
  from collections.abc import Callable
4
4
  from typing import Any
5
5
 
6
- from typing_extensions import Protocol
6
+ from typing_extensions import Protocol, Buffer
7
7
 
8
8
  class _FileLike(Protocol):
9
9
  def read(self, n: int) -> bytes: ...
10
10
 
11
11
  def unpackb(
12
- packed: bytes,
12
+ packed: Buffer,
13
13
  file_like: _FileLike | None = ...,
14
14
  read_size: int = ...,
15
15
  use_list: bool = ...,
@@ -50,7 +50,7 @@ class Unpacker:
50
50
  max_map_len: int = ...,
51
51
  max_ext_len: int = ...,
52
52
  ): ...
53
- def feed(self, next_bytes: bytes) -> None: ...
53
+ def feed(self, next_bytes: Buffer) -> None: ...
54
54
  def read_bytes(self, n: int) -> bytearray: ...
55
55
  def __iter__(self) -> Unpacker: ...
56
56
  def __next__(self) -> Any: ...
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "msgpack-types"
3
- version = "0.4.0"
3
+ version = "0.5.0"
4
4
  description = "Type stubs for msgpack"
5
5
  repository = "https://github.com/sbdchd/msgpack-types"
6
6
  readme = "README.md"
@@ -15,12 +15,12 @@ packages = [
15
15
  [tool.poetry.dependencies]
16
16
  python = "^3.8"
17
17
  msgpack = ">=1.1.0,<1.2.0"
18
+ typing-extensions = '>=4.6.0'
18
19
 
19
20
  [tool.poetry.dev-dependencies]
20
21
  mypy = "^0.790.0"
21
22
  ipython = "^7.19"
22
23
  flake8 = "^3.8"
23
- msgpack = "^1.0"
24
24
  isort = "^5.6"
25
25
  black = {version = "^18.3-alpha.0",allow-prereleases = true}
26
26
 
File without changes
File without changes