msgpack-types 0.4.0__tar.gz → 0.6.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,9 +1,9 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: msgpack-types
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: Type stubs for msgpack
5
- Home-page: https://github.com/sbdchd/msgpack-types
6
5
  License: Apache-2.0
6
+ License-File: LICENSE
7
7
  Keywords: msgpack,types,mypy,stubs
8
8
  Author: Steve Dignam
9
9
  Author-email: steve@dignam.xyz
@@ -15,7 +15,10 @@ Classifier: Programming Language :: Python :: 3.9
15
15
  Classifier: Programming Language :: Python :: 3.10
16
16
  Classifier: Programming Language :: Python :: 3.11
17
17
  Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
18
20
  Requires-Dist: msgpack (>=1.1.0,<1.2.0)
21
+ Requires-Dist: typing-extensions (>=4.6.0)
19
22
  Project-URL: Repository, https://github.com/sbdchd/msgpack-types
20
23
  Description-Content-Type: text/markdown
21
24
 
@@ -24,13 +24,13 @@ version: tuple[int, int, int] = ...
24
24
  __version__: str = ...
25
25
 
26
26
  class _WriteStream(Protocol):
27
- def write(self, b: bytes) -> int: ...
27
+ def write(self, b: bytes, /) -> int: ...
28
28
 
29
29
  class _Stream(Protocol):
30
30
  def read(self) -> bytes: ...
31
31
 
32
32
  class _FileLike(Protocol):
33
- def read(self, n: int) -> bytes: ...
33
+ def read(self, n: int, /) -> bytes: ...
34
34
 
35
35
  def pack(
36
36
  o: Any,
@@ -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.6.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