This is an automated email from the ASF dual-hosted git repository.
dimberman pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-test by this push:
new d88841e fix static tests
d88841e is described below
commit d88841e470fa60b4a56a1cd94ba0ae875f5c38f5
Author: Daniel Imberman <[email protected]>
AuthorDate: Thu Sep 17 07:29:43 2020 -0700
fix static tests
---
airflow/contrib/operators/kubernetes_pod_operator.py | 2 +-
kubernetes_tests/test_kubernetes_pod_operator.py | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/airflow/contrib/operators/kubernetes_pod_operator.py
b/airflow/contrib/operators/kubernetes_pod_operator.py
index 55856143..cdf5076 100644
--- a/airflow/contrib/operators/kubernetes_pod_operator.py
+++ b/airflow/contrib/operators/kubernetes_pod_operator.py
@@ -455,7 +455,7 @@ class KubernetesPodOperator(BaseOperator): # pylint:
disable=too-many-instance-
)
return final_state, result
- def on_kill(self) -> None:
+ def on_kill(self):
if self.pod:
pod = self.pod
namespace = pod.metadata.namespace
diff --git a/kubernetes_tests/test_kubernetes_pod_operator.py
b/kubernetes_tests/test_kubernetes_pod_operator.py
index 4364885..0335b58 100644
--- a/kubernetes_tests/test_kubernetes_pod_operator.py
+++ b/kubernetes_tests/test_kubernetes_pod_operator.py
@@ -20,7 +20,6 @@ import json
import os
import shutil
import sys
-import textwrap
import unittest
import kubernetes.client.models as k8s