Skip to content

Commit 16ec9c1

Browse files
committed
typefix: add pd.Series[str] as typehint to avoid mypy error
1 parent e74d5f4 commit 16ec9c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bokeh_sampledata/browsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
def _read_data() -> pd.DataFrame:
4040
df = package_csv("browsers_nov_2013.csv", names=("Version", "Share"), skiprows=1)
41-
versions = df["Version"].map(lambda x: x.rsplit(" ", 1))
41+
versions: pd.Series[str] = df["Version"].map(lambda x: x.rsplit(" ", 1))
4242
df["Browser"] = versions.map(lambda x: x[0])
4343
df["VersionNumber"] = versions.map(lambda x: x[1] if len(x) == 2 else "0")
4444
return df

0 commit comments

Comments
 (0)