diff --git a/rollbar/lib/transforms/shortener.py b/rollbar/lib/transforms/shortener.py index d996162e..fa8d7a76 100644 --- a/rollbar/lib/transforms/shortener.py +++ b/rollbar/lib/transforms/shortener.py @@ -4,7 +4,7 @@ import reprlib from collections.abc import Mapping -from typing import Union +from typing import Union, Tuple from rollbar.lib import ( integer_types, key_in, key_depth, sequence_types, @@ -26,7 +26,7 @@ } -def _max_left_right(max_len: int, seperator_len: int) -> tuple[int, int]: +def _max_left_right(max_len: int, seperator_len: int) -> Tuple[int, int]: left = max(0, (max_len-seperator_len)//2) right = max(0, max_len-seperator_len-left) return left, right