Skip to content

Commit

Permalink
Fixed Python < 3.9 typing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorell committed Oct 18, 2024
1 parent fd06df3 commit d0c6de6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollbar/lib/transforms/shortener.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit d0c6de6

Please sign in to comment.