You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2020/05/08 21:12:17 UTC

[airflow] branch master updated: fix typing errors reported by dmypy (#8773)

This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/master by this push:
     new a091c1f  fix typing errors reported by dmypy (#8773)
a091c1f is described below

commit a091c1fbf9dfec84953bbe2c938081a1b4fc0f63
Author: QP Hou <qp...@scribd.com>
AuthorDate: Fri May 8 14:11:21 2020 -0700

    fix typing errors reported by dmypy (#8773)
---
 airflow/plugins_manager.py                                            | 2 +-
 .../google/marketing_platform/operators/test_display_video.py         | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/airflow/plugins_manager.py b/airflow/plugins_manager.py
index c412a01..7e3b4ae 100644
--- a/airflow/plugins_manager.py
+++ b/airflow/plugins_manager.py
@@ -33,7 +33,7 @@ from airflow import settings
 
 log = logging.getLogger(__name__)
 
-import_errors = {}
+import_errors: Dict[str, str] = {}
 
 plugins = None  # type: Optional[List[AirflowPlugin]]
 
diff --git a/tests/providers/google/marketing_platform/operators/test_display_video.py b/tests/providers/google/marketing_platform/operators/test_display_video.py
index dcff1cb..febcf3d 100644
--- a/tests/providers/google/marketing_platform/operators/test_display_video.py
+++ b/tests/providers/google/marketing_platform/operators/test_display_video.py
@@ -15,7 +15,7 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
+from typing import Optional
 from unittest import TestCase, mock
 
 from airflow.providers.google.marketing_platform.operators.display_video import (
@@ -27,7 +27,7 @@ from airflow.providers.google.marketing_platform.operators.display_video import
 
 API_VERSION = "api_version"
 GCP_CONN_ID = "google_cloud_default"
-DELEGATE_TO = None
+DELEGATE_TO: Optional[str] = None
 
 
 class TestGoogleDisplayVideo360CreateReportOperator(TestCase):