Skip to content

Commit

Permalink
Update vizro-core/src/vizro/models/types.py
Browse files Browse the repository at this point in the history
Co-authored-by: Li Nguyen <[email protected]>
Signed-off-by: Antony Milne <[email protected]>
  • Loading branch information
antonymilne and huong-li-nguyen authored Apr 9, 2024
1 parent 04be56e commit 4e72a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vizro-core/src/vizro/models/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def wrapped(*args, **kwargs) -> _DashboardReadyFigure:

if isinstance(captured_callable["data_frame"], str):
# Enable running e.g. px.scatter("iris") from the Python API. Don't actually run the function
# because it won't get work as there's no data. This case is not relevant for the JSON/YAML API,
# because it won't work as there's no data. This case is not relevant for the JSON/YAML API,
# which is handled separately through validation of CapturedCallable.
fig = _DashboardReadyFigure()
else:
Expand Down

0 comments on commit 4e72a82

Please sign in to comment.