From afa2f6ffb27f03f46a2bb26e6a9323c9e6c69ae4 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 8 Oct 2025 21:14:29 +0200 Subject: [PATCH] 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. --- popcorn.qmd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/popcorn.qmd b/popcorn.qmd index f2b7893..1712cd4 100644 --- a/popcorn.qmd +++ b/popcorn.qmd @@ -303,7 +303,7 @@ and this distribution is what we see here. ```{python} 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"] def get_num(df: pl.LazyFrame) -> int: return df.count().collect(engine="streaming").item(0, 0) @@ -411,7 +411,7 @@ pplot(plt_kernel_timeline) ```{python} from datetime import date 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"] 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} from notebooks.popcorn import tab_pkg -outp, defs = tab_pkg.run() +outp, _ = tab_pkg.run() # pyright: ignore outp ``` @@ -523,7 +523,7 @@ show the resulting growth line. ```{python} from notebooks.popcorn import plt_filesize_cumulative -outp, defs = plt_filesize_cumulative.run() +outp, _ = plt_filesize_cumulative.run() # pyright: ignore outp ``` @@ -588,7 +588,7 @@ There are some missing days in the statistics. ```{python} from notebooks.popcorn import tab_missing_days -outp, defs = tab_missing_days.run() +outp, _ = tab_missing_days.run() # pyright: ignore outp ```