uranusjr commented on code in PR #23160:
URL: https://github.com/apache/airflow/pull/23160#discussion_r894169596
##########
airflow/providers/docker/operators/docker.py:
##########
@@ -189,7 +190,20 @@ def __init__(
) -> None:
super().__init__(**kwargs)
self.api_version = api_version
- self.auto_remove = auto_remove
+ if type(auto_remove) == bool:
+ warnings.warn(
+ "bool value is deprecated, please use 'never', 'success', or
'force' instead",
+ DeprecationWarning,
+ stacklevel=2
+ )
Review Comment:
```suggestion
if type(auto_remove) == bool:
warnings.warn(
"bool value is deprecated, please use 'never', 'success', or
'force' instead",
DeprecationWarning,
stacklevel=2,
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]