Skip to content

Commit 3d7144e

Browse files
committed
fix typing
1 parent 5a5401e commit 3d7144e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

soccerdata/clubelo.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def read_by_date(self, date: Optional[Union[str, datetime]] = None) -> pd.DataFr
110110
.set_index("team")
111111
)
112112

113-
def read_team_history(self, team: str, max_age: Union[int, timedelta] = 1) -> pd.DataFrame:
113+
def read_team_history(
114+
self, team: str, max_age: Optional[Union[int, timedelta]] = 1
115+
) -> pd.DataFrame:
114116
"""Retrieve full ELO history for one club.
115117
116118
For the exact spelling of a club's name, check the result of
@@ -124,7 +126,8 @@ def read_team_history(self, team: str, max_age: Union[int, timedelta] = 1) -> pd
124126
team : str
125127
The club's name.
126128
max_age : int for age in days, or timedelta object
127-
The max. age of locally cached file before re-download.
129+
The max. age of locally cached file before re-download. To disable
130+
re-downloading, set to None.
128131
129132
Raises
130133
------

0 commit comments

Comments
 (0)