Skip to content

Commit

Permalink
use old style type var
Browse files Browse the repository at this point in the history
  • Loading branch information
theOehrly committed Apr 6, 2024
1 parent c524ad0 commit 796e1f8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions fastf1/plotting/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Dict,
List,
Sequence,
Tuple
Tuple,
TypeVar
)

from thefuzz import fuzz
Expand Down Expand Up @@ -49,7 +50,10 @@ def __init__(
self.teams_by_normalized[team.normalized_value] = team


def _fuzzy_matcher[S: str](identifier: str, reference: Sequence[S]) -> S:
S = TypeVar('S', bound=str)


def _fuzzy_matcher(identifier: str, reference: Sequence[S]) -> S:
# do fuzzy string matching
key_ratios = list()
for existing_key in reference:
Expand Down

0 comments on commit 796e1f8

Please sign in to comment.