Skip to content

Commit c7f6c8b

Browse files
committed
updated according to signature changes in 1.0
Signed-off-by: Oleg Höfling <oleg.hoefling@gmail.com>
1 parent 547beb6 commit c7f6c8b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

msgpack/__init__.pyi

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ class Unpacker(Generic[_S]):
6464
read_size: int = ...,
6565
use_list: bool = ...,
6666
raw: bool = ...,
67+
timestamp: int = ...,
6768
strict_map_key: bool = ...,
6869
object_hook: Optional[_ObjectHook] = ...,
6970
object_pairs_hook: Optional[_ObjectPairsHook] = ...,
7071
list_hook: Optional[_ListHook] = ...,
71-
encoding: Optional[str] = ...,
7272
unicode_errors: Optional[str] = ...,
7373
max_buffer_size: int = ...,
7474
ext_hook: Type[ExtType] = ...,
@@ -92,12 +92,11 @@ class Packer:
9292
def __init__(
9393
self,
9494
default: Optional[_UserTypeConverter] = ...,
95-
encoding: Optional[str] = ...,
96-
unicode_errors: Optional[str] = ...,
9795
use_single_float: bool = ...,
9896
autoreset: bool = ...,
9997
use_bin_type: bool = ...,
10098
strict_types: bool = ...,
99+
datetime: bool = ...,
101100
) -> None: ...
102101
def pack(self, obj: Any) -> bytes: ...
103102
def pack_map_pairs(self, pairs: Collection[Tuple[Any, Any]]) -> bytes: ...
@@ -112,32 +111,31 @@ def pack(
112111
o: Any,
113112
stream: SupportsWrite,
114113
default: Optional[_UserTypeConverter] = ...,
115-
encoding: Optional[str] = ...,
116-
unicode_errors: Optional[str] = ...,
117114
use_single_float: bool = ...,
118115
autoreset: bool = ...,
119116
use_bin_type: bool = ...,
120117
strict_types: bool = ...,
118+
datetime: bool = ...,
121119
) -> None: ...
122120
def packb(
123121
o: Any,
124-
encoding: Optional[str] = ...,
125-
unicode_errors: Optional[str] = ...,
122+
default: Optional[_UserTypeConverter] = ...,
126123
use_single_float: bool = ...,
127124
autoreset: bool = ...,
128125
use_bin_type: bool = ...,
129126
strict_types: bool = ...,
127+
datetime: bool = ...,
130128
) -> bytes: ...
131129
def unpack(
132130
stream: SupportsRead,
133131
read_size: int = ...,
134132
use_list: bool = ...,
135133
raw: bool = ...,
134+
timestamp: int = ...,
136135
strict_map_key: bool = ...,
137136
object_hook: Optional[_ObjectHook] = ...,
138137
object_pairs_hook: Optional[_ObjectPairsHook] = ...,
139138
list_hook: Optional[_ListHook] = ...,
140-
encoding: Optional[str] = ...,
141139
unicode_errors: Optional[str] = ...,
142140
max_buffer_size: int = ...,
143141
ext_hook: Type[ExtType] = ...,
@@ -152,11 +150,11 @@ def unpackb(
152150
read_size: int = ...,
153151
use_list: bool = ...,
154152
raw: bool = ...,
153+
timestamp: int = ...,
155154
strict_map_key: bool = ...,
156155
object_hook: Optional[_ObjectHook] = ...,
157156
object_pairs_hook: Optional[_ObjectPairsHook] = ...,
158157
list_hook: Optional[_ListHook] = ...,
159-
encoding: Optional[str] = ...,
160158
unicode_errors: Optional[str] = ...,
161159
max_buffer_size: int = ...,
162160
ext_hook: Type[ExtType] = ...,

0 commit comments

Comments
 (0)