mirror of https://github.com/Nonannet/pyladoc.git
type: ignore[truthy-function] added in latex.py for checking optional dependency
This commit is contained in:
parent
250885d44f
commit
37ad1231c8
|
@ -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]:
|
||||
|
|
Loading…
Reference in New Issue