Skip to content

Commit

Permalink
fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbilskyrollins committed Nov 3, 2024
1 parent 5096ae4 commit 492bacc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions espn_api/basketball/league.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

Check warning on line 110 in espn_api/basketball/league.py

View check run for this annotation

Codecov / codecov/patch

espn_api/basketball/league.py#L109-L110

Added lines #L109 - L110 were not covered by tests
Expand Down

0 comments on commit 492bacc

Please sign in to comment.