dimberman commented on a change in pull request #15330:
URL: https://github.com/apache/airflow/pull/15330#discussion_r688773634
##########
File path: airflow/decorators/__init__.pyi
##########
@@ -0,0 +1,105 @@
+from typing import Optional, Callable, Iterable, Dict, Union, List
+
+try:
+ from airflow.providers.docker.decorators.docker import DockerDecoratorMixin
+except ImportError:
+ DockerDecoratorMixin = None
+
+class _TaskDecorator:
+ def __call__(self, *args, **kwargs):
+ try:
+ from airflow.providers.docker.decorators import docker
+
+ except ImportError:
+ pass
+ def python(
Review comment:
@ashb and I spoke it over and for now we're just going to keep python
and virtualenv in the taskdecorator class. It doesn't change anything
functionally and unlike external providers, python and virtualenv will ONLY
update with updates to Airflow.
--
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]