Fix pyright errors
Pyright expects a tuple _or_ an Awaitable, but none of my notebook functions are async, so we can safely ignore the awaitable type error.
This commit is contained in:
parent
c9e12252fd
commit
afa2f6ffb2
1 changed files with 5 additions and 5 deletions
10
popcorn.qmd
10
popcorn.qmd
|
|
@ -303,7 +303,7 @@ and this distribution is what we see here.
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
from notebooks.popcorn import plt_top_packages
|
from notebooks.popcorn import plt_top_packages
|
||||||
_, defs = plt_top_packages.run()
|
_, defs = plt_top_packages.run() # pyright: ignore
|
||||||
df_pkg_dl = defs["df_pkg_dl"]
|
df_pkg_dl = defs["df_pkg_dl"]
|
||||||
def get_num(df: pl.LazyFrame) -> int:
|
def get_num(df: pl.LazyFrame) -> int:
|
||||||
return df.count().collect(engine="streaming").item(0, 0)
|
return df.count().collect(engine="streaming").item(0, 0)
|
||||||
|
|
@ -411,7 +411,7 @@ pplot(plt_kernel_timeline)
|
||||||
```{python}
|
```{python}
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from notebooks.popcorn import plt_kernel_timeline
|
from notebooks.popcorn import plt_kernel_timeline
|
||||||
_, defs = plt_kernel_timeline.run()
|
_, defs = plt_kernel_timeline.run() # pyright: ignore
|
||||||
weekly_kernel_df = defs["weekly_kernel_df"]
|
weekly_kernel_df = defs["weekly_kernel_df"]
|
||||||
|
|
||||||
last_kernel4: date = weekly_kernel_df.filter(pl.col("major_ver") == "4")[-1][
|
last_kernel4: date = weekly_kernel_df.filter(pl.col("major_ver") == "4")[-1][
|
||||||
|
|
@ -512,7 +512,7 @@ table, for example the following is the table for the package count list:
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
from notebooks.popcorn import tab_pkg
|
from notebooks.popcorn import tab_pkg
|
||||||
outp, defs = tab_pkg.run()
|
outp, _ = tab_pkg.run() # pyright: ignore
|
||||||
outp
|
outp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -523,7 +523,7 @@ show the resulting growth line.
|
||||||
|
|
||||||
```{python}
|
```{python}
|
||||||
from notebooks.popcorn import plt_filesize_cumulative
|
from notebooks.popcorn import plt_filesize_cumulative
|
||||||
outp, defs = plt_filesize_cumulative.run()
|
outp, _ = plt_filesize_cumulative.run() # pyright: ignore
|
||||||
outp
|
outp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -588,7 +588,7 @@ There are some missing days in the statistics.
|
||||||
```{python}
|
```{python}
|
||||||
from notebooks.popcorn import tab_missing_days
|
from notebooks.popcorn import tab_missing_days
|
||||||
|
|
||||||
outp, defs = tab_missing_days.run()
|
outp, _ = tab_missing_days.run() # pyright: ignore
|
||||||
outp
|
outp
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue