fix: fixed bool iterable issue
Browse files
app.py
CHANGED
|
@@ -327,7 +327,7 @@ def _generate_chart(
|
|
| 327 |
scatter_x: Optional[str],
|
| 328 |
scatter_y: Optional[str],
|
| 329 |
scatter_color: Optional[str],
|
| 330 |
-
) -> Tuple[
|
| 331 |
"""Create a visualization based on user selections."""
|
| 332 |
state = _ensure_state(state)
|
| 333 |
try:
|
|
@@ -375,7 +375,7 @@ def _download_filtered(state) -> str:
|
|
| 375 |
return temp.name
|
| 376 |
|
| 377 |
|
| 378 |
-
def _download_chart(fig:
|
| 379 |
"""Export the most recent chart to PNG."""
|
| 380 |
if fig is None:
|
| 381 |
raise ValueError("Generate a visualization before exporting.")
|
|
|
|
| 327 |
scatter_x: Optional[str],
|
| 328 |
scatter_y: Optional[str],
|
| 329 |
scatter_color: Optional[str],
|
| 330 |
+
) -> Tuple[Any, Any, str]:
|
| 331 |
"""Create a visualization based on user selections."""
|
| 332 |
state = _ensure_state(state)
|
| 333 |
try:
|
|
|
|
| 375 |
return temp.name
|
| 376 |
|
| 377 |
|
| 378 |
+
def _download_chart(fig: Any) -> str:
|
| 379 |
"""Export the most recent chart to PNG."""
|
| 380 |
if fig is None:
|
| 381 |
raise ValueError("Generate a visualization before exporting.")
|