Skip to content

Commit

Permalink
update on is_too_long as part of #201
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Mohamed <kibablu16@gmail.com>
  • Loading branch information
kibablu committed May 25, 2021
1 parent ccf60f0 commit 8ae8f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sygnal/apnstruncate.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BodyTooLongException(Exception):
pass


def is_too_long(payload: Dict[Any, Any], max_length: int = 2048) -> bool:
def is_too_long(payload: dict, max_length: int = 2048) -> bool:
"""
Returns True if the given payload dictionary is too long for a push.
Note that the maximum is now 2kB "In iOS 8 and later" although in
Expand Down

0 comments on commit 8ae8f52

Please sign in to comment.