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

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


The following commit(s) were added to refs/heads/main by this push:
     new e16e9f3439 Replace type func by isinstance in DockerOperator (#33759)
e16e9f3439 is described below

commit e16e9f3439956c92f626321ce6d72f5488b4080a
Author: Hussein Awala <[email protected]>
AuthorDate: Sat Aug 26 09:12:17 2023 +0200

    Replace type func by isinstance in DockerOperator (#33759)
---
 airflow/providers/docker/operators/docker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/providers/docker/operators/docker.py 
b/airflow/providers/docker/operators/docker.py
index d034e1ff32..522410d278 100644
--- a/airflow/providers/docker/operators/docker.py
+++ b/airflow/providers/docker/operators/docker.py
@@ -225,7 +225,7 @@ class DockerOperator(BaseOperator):
     ) -> None:
         super().__init__(**kwargs)
         self.api_version = api_version
-        if type(auto_remove) == bool:
+        if isinstance(auto_remove, bool):
             warnings.warn(
                 "bool value for auto_remove is deprecated, please use 'never', 
'success', or 'force' instead",
                 AirflowProviderDeprecationWarning,

Reply via email to