You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "QP Hou (Jira)" <ji...@apache.org> on 2020/01/20 21:10:00 UTC

[jira] [Created] (AIRFLOW-6605) code doesn't pass static check from latest mypy (0.761)

QP Hou created AIRFLOW-6605:
-------------------------------

             Summary: code doesn't pass static check from latest mypy (0.761)
                 Key: AIRFLOW-6605
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6605
             Project: Apache Airflow
          Issue Type: New Feature
          Components: build
    Affects Versions: 2.0.0
            Reporter: QP Hou
            Assignee: QP Hou


Warnings from latest mypy:

{code:text}
tests/models/test_taskinstance.py:52: error: Need type annotation for 'task_id'  [var-annotated]
        task_id = None
        ^
tests/models/test_taskinstance.py:53: error: Need type annotation for 'dag_id'  [var-annotated]
        dag_id = None
        ^
tests/models/test_taskinstance.py:54: error: Need type annotation for 'execution_date'  [var-annotated]
        execution_date = None
        ^
tests/models/test_taskinstance.py:55: error: Need type annotation for 'task_state_in_callback'  [var-annotated]
        task_state_in_callback = None
        ^
Found 4 errors in 1 file (checked 1500 source files)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)