type: ignore[truthy-function] added in latex.py for checking optional dependency

This commit is contained in:
Nicolas 2025-05-26 10:35:48 +02:00
parent 250885d44f
commit 37ad1231c8
1 changed files with 1 additions and 1 deletions

View File

@ -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]: