Skip to content

Commit

Permalink
fix for re.matches
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d committed Jun 27, 2024
1 parent 2f9afa6 commit fc1a8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tgram/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, me: "tgram.TgBot" = None, json: dict = None) -> None:
@staticmethod
def default(obj: "Type_"):
if not isinstance(obj, Type_):
return obj
return repr(obj)

return {
"_": obj.__class__.__name__,
Expand Down

0 comments on commit fc1a8b4

Please sign in to comment.