From 492baccf5ce184b0024fd44c4ec6b05b7df99d29 Mon Sep 17 00:00:00 2001 From: Simon Bilsky-Rollins Date: Sun, 3 Nov 2024 08:48:01 -0800 Subject: [PATCH] fix typing error --- espn_api/basketball/league.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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