From ff7a37b2d1c75b79bf2a4727bff862d36a9b843f Mon Sep 17 00:00:00 2001 From: Antony Milne Date: Thu, 17 Oct 2024 09:24:54 +0100 Subject: [PATCH] Remove Raises from KPI card docstrings --- vizro-core/src/vizro/figures/_kpi_cards.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vizro-core/src/vizro/figures/_kpi_cards.py b/vizro-core/src/vizro/figures/_kpi_cards.py index f71702a30..a635369f6 100644 --- a/vizro-core/src/vizro/figures/_kpi_cards.py +++ b/vizro-core/src/vizro/figures/_kpi_cards.py @@ -49,10 +49,6 @@ def kpi_card( icon: Name of the icon from the [Google Material Icon Library](https://fonts.google.com/icons) to be displayed on the left side of the KPI title. If not provided, no icon is displayed. - Raises: - UserWarning: If `value_format` is provided, a warning is raised to make aware that only trusted user - input should be provided. - Returns: A Dash Bootstrap Components card (`dbc.Card`) containing the formatted KPI value. @@ -123,10 +119,6 @@ def kpi_card_reference( # noqa: PLR0913 icon: Name of the icon from the [Google Material Icon Library](https://fonts.google.com/icons) to be displayed on the left side of the KPI title. If not provided, no icon is displayed. - Raises: - UserWarning: If `value_format` or `reference_format` is provided, a warning is raised to make aware - that only trusted user input should be provided. - Returns: A Dash Bootstrap Components card (`dbc.Card`) containing the formatted KPI value and reference.