Skip to content

Commit

Permalink
INDENT
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d authored Jul 25, 2024
1 parent 009d22b commit 866ccb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion telebot/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@


DISABLE_KEYLEN_ERROR = False
JSONDESERIALIZABLE_INDENT = 2
JSONDESERIALIZABLE_PARSE_OUTPUT = False
JSONDESERIALIZABLE_SKIP_NONE = True

Expand Down Expand Up @@ -115,7 +116,7 @@ def __str__(self) -> str:
}
)
return (
json.dumps(self, default=default, indent=2, ensure_ascii=False)
json.dumps(self, default=default, indent=JSONDESERIALIZABLE_INDENT, ensure_ascii=False)
if JSONDESERIALIZABLE_PARSE_OUTPUT
else str(
{
Expand Down

0 comments on commit 866ccb8

Please sign in to comment.