You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/01 11:25:13 UTC

[GitHub] [airflow] ashb commented on a change in pull request #19914: Fix mypy errors in airflow utils

ashb commented on a change in pull request #19914:
URL: https://github.com/apache/airflow/pull/19914#discussion_r760093504



##########
File path: airflow/utils/dot_renderer.py
##########
@@ -46,7 +47,9 @@ def _refine_color(color: str):
     return color
 
 
-def _draw_task(task: BaseOperator, parent_graph: graphviz.Digraph, states_by_task_id: Dict[str, str]) -> None:
+def _draw_task(
+    task: BaseOperator, parent_graph: graphviz.Digraph, states_by_task_id: Optional[Dict[Any, Any]]

Review comment:
       The function does support it being none:`if states_by_task_id:`




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org