bkyryliuk commented on code in PR #20974:
URL: https://github.com/apache/superset/pull/20974#discussion_r937981840
##########
superset/common/query_context_processor.py:
##########
@@ -491,6 +491,8 @@ def get_viz_annotation_data(
chart = ChartDAO.find_by_id(annotation_layer["value"])
if not chart:
raise QueryObjectValidationError(_("The chart does not exist"))
+ if not chart.datasource:
Review Comment:
addresses mypy issue in
```
viz_obj = get_viz(
datasource_type=chart.datasource.type,
datasource_id=chart.datasource.id,
form_data=form_data,
force=force,
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]