Skip to content

Commit

Permalink
fix(typing): consistent overload
Browse files Browse the repository at this point in the history
  • Loading branch information
luwqz1 committed Jun 5, 2024
1 parent 8f3846f commit 6333372
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions telegrinder/msgspec_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,7 @@ def decode(
strict: bool = True,
) -> T: ...

def decode(
self,
buf: str | bytes,
*,
type: type[T] = typing.Any, # type: ignore
strict: bool = True,
) -> T:
def decode(self, buf, *, type=typing.Any, strict=True):
return msgspec.json.decode(
buf,
type=type,
Expand Down

0 comments on commit 6333372

Please sign in to comment.