Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Sep 21, 2024
1 parent 2c37da0 commit cd347aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions msgspec/msgpack.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Decoder(Generic[T]):
dec_hook: dec_hook_sig = None,
ext_hook: ext_hook_sig = None,
) -> None: ...
def decode(self, data: bytes) -> T: ...
def decode(self, data: bytes | memoryview) -> T: ...

class Encoder:
enc_hook: enc_hook_sig
Expand All @@ -76,15 +76,15 @@ class Encoder:

@overload
def decode(
buf: bytes,
buf: bytes | memoryview,
*,
strict: bool = True,
dec_hook: dec_hook_sig = None,
ext_hook: ext_hook_sig = None,
) -> Any: ...
@overload
def decode(
buf: bytes,
buf: bytes | memoryview,
*,
type: Type[T] = ...,
strict: bool = True,
Expand All @@ -93,7 +93,7 @@ def decode(
) -> T: ...
@overload
def decode(
buf: bytes,
buf: bytes | memoryview,
*,
type: Any = ...,
strict: bool = True,
Expand Down

0 comments on commit cd347aa

Please sign in to comment.