From 67e320c93d560d8f3e3bed53dd6703689db1c8e6 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Mon, 24 Jun 2024 15:16:24 -0600 Subject: [PATCH] Use Tuple instead of tuple in type signature --- sygnal/gcmpushkin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sygnal/gcmpushkin.py b/sygnal/gcmpushkin.py index 01b7ae74..e3971227 100644 --- a/sygnal/gcmpushkin.py +++ b/sygnal/gcmpushkin.py @@ -745,7 +745,7 @@ def _build_data( return data -def truncate_str(input: str, max_bytes: int) -> tuple[str, bool]: +def truncate_str(input: str, max_bytes: int) -> Tuple[str, bool]: """ Truncate the given string. If the truncation would occur in the middle of a unicode character, that character will be removed entirely instead.