Skip to content

Commit

Permalink
Replace type func by isinstance in DockerOperator (#33759)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Aug 26, 2023
1 parent a44f261 commit e16e9f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/docker/operators/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def __init__(
) -> 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,
Expand Down

0 comments on commit e16e9f3

Please sign in to comment.