diff --git a/espn_api/basketball/league.py b/espn_api/basketball/league.py index cd90c12e..30a81e48 100644 --- a/espn_api/basketball/league.py +++ b/espn_api/basketball/league.py @@ -1,5 +1,5 @@ import json -from typing import List, Tuple, Union +from typing import List, Set, Union from ..base_league import BaseLeague from .team import Team @@ -104,7 +104,7 @@ def recent_activity(self, size: int = 25, msg_type: str = None, offset: int = 0, return activity - def transactions(self, scoring_period: int = None, types: set[str] = {"FREEAGENT","WAIVER","WAIVER_ERROR"}) -> List[Transaction]: + def transactions(self, scoring_period: int = None, types: Set[str] = {"FREEAGENT","WAIVER","WAIVER_ERROR"}) -> List[Transaction]: '''Returns a list of recent transactions''' if not scoring_period: scoring_period = self.scoringPeriodId