From 37ad1231c874dd12a55ec6d874acd8badf53493f Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 26 May 2025 10:35:48 +0200 Subject: [PATCH] type: ignore[truthy-function] added in latex.py for checking optional dependency --- src/pyladoc/latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyladoc/latex.py b/src/pyladoc/latex.py index d1d2f59..ca217e4 100644 --- a/src/pyladoc/latex.py +++ b/src/pyladoc/latex.py @@ -122,7 +122,7 @@ def render_pandas_styler_table(df_style: Styler, caption: str = '', label: str = Returns: The LaTeX code. """ - assert Styler, 'Jinja2 package is required for rendering pandas tables' + assert Styler, 'Jinja2 package is required for rendering pandas tables' # type: ignore[truthy-function] assert isinstance(df_style, Styler), 'df_style has to be of type Styler' def iter_table(table: dict[str, Any]) -> Generator[str, None, None]: