You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/08/16 17:50:00 UTC

[jira] [Commented] (AIRFLOW-5140) missing type annotation errors reported by dmypy

    [ https://issues.apache.org/jira/browse/AIRFLOW-5140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16909284#comment-16909284 ] 

ASF subversion and git services commented on AIRFLOW-5140:
----------------------------------------------------------

Commit e6a20acb13eec07930ccfda4e91d6c49eb4b7dde in airflow's branch refs/heads/master from Qingping Hou
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=e6a20ac ]

[AIRFLOW-5140] fix all missing type annotation errors from dmypy (#5664)



> missing type annotation errors reported by dmypy
> ------------------------------------------------
>
>                 Key: AIRFLOW-5140
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5140
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: ci
>    Affects Versions: 2.0.0
>            Reporter: QP Hou
>            Assignee: QP Hou
>            Priority: Trivial
>
> dmypy is reporting the following error:
>  
> {code:bash}
> $ dmypy run -- --follow-imports=error airflow tests
> tests/core.py:2188: error: Need type annotation for 'HDFSHook'
> tests/core.py:2189: error: Need type annotation for 'snakebite'
> airflow/__init__.py:42: error: Need type annotation for 'login'
> airflow/api/auth/backend/default.py:22: error: Need type annotation for 'CLIENT_AUTH'
> airflow/api/auth/backend/deny_all.py:23: error: Need type annotation for 'CLIENT_AUTH'
> airflow/contrib/example_dags/example_gcp_speech.py:60: error: Need type annotation for 'SOURCE_LANGUAGE'
> airflow/contrib/hooks/gcp_cloud_build_hook.py:50: error: Need type annotation for '_conn'
> airflow/contrib/hooks/gcp_compute_hook.py:50: error: Need type annotation for '_conn'
> airflow/contrib/hooks/gcp_function_hook.py:41: error: Need type annotation for '_conn'
> airflow/contrib/hooks/gcp_sql_hook.py:722: error: Need type annotation for '_conn'
> airflow/contrib/hooks/gcp_translate_hook.py:35: error: Need type annotation for '_client'
> airflow/contrib/hooks/gcs_hook.py:41: error: Need type annotation for '_conn'
> airflow/contrib/operators/awsbatch_operator.py:62: error: Need type annotation for 'client'
> airflow/contrib/operators/awsbatch_operator.py:63: error: Need type annotation for 'arn'
> airflow/contrib/operators/ecs_operator.py:61: error: Need type annotation for 'client'
> airflow/contrib/operators/ecs_operator.py:62: error: Need type annotation for 'arn'
> airflow/contrib/operators/gcp_function_operator.py:229: error: Need type annotation for 'upload_function'
> airflow/executors/__init__.py:28: error: Need type annotation for 'DEFAULT_EXECUTOR'
> airflow/hooks/dbapi_hook.py:41: error: Need type annotation for 'connector'
> airflow/models/crypto.py:49: error: Need type annotation for '_fernet'
> airflow/security/kerberos.py:25: error: Need type annotation for 'NEED_KRB181_WORKAROUND'
> airflow/settings.py:66: error: Need type annotation for 'SQL_ALCHEMY_CONN'
> airflow/settings.py:67: error: Need type annotation for 'DAGS_FOLDER'
> airflow/settings.py:68: error: Need type annotation for 'PLUGINS_FOLDER'
> airflow/settings.py:69: error: Need type annotation for 'LOGGING_CLASS_PATH'
> airflow/settings.py:71: error: Need type annotation for 'engine'
> airflow/settings.py:72: error: Need type annotation for 'Session'
> airflow/settings.py:312: error: Need type annotation for 'CONTEXT_MANAGER_DAG'
> airflow/utils/state.py:28: error: Need type annotation for 'NONE'
> airflow/www/app.py:39: error: Need type annotation for 'appbuilder'
> tests/contrib/hooks/test_databricks_hook.py:72: error: Need type annotation for 'RESULT_STATE'
> tests/contrib/hooks/test_gcp_cloud_build_hook.py:49: error: Need type annotation for 'hook'
> tests/contrib/hooks/test_gcp_cloud_build_hook.py:122: error: Need type annotation for 'hook'
> tests/contrib/hooks/test_gcp_cloud_build_hook.py:191: error: Need type annotation for 'hook'
> tests/contrib/utils/gcp_authenticator.py:57: error: Need type annotation for 'original_account'
> tests/test_utils/reset_warning_registry.py:45: error: Need type annotation for '_pattern'
> tests/test_utils/reset_warning_registry.py:48: error: Need type annotation for '_backup'
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)