potiuk commented on a change in pull request #21020:
URL: https://github.com/apache/airflow/pull/21020#discussion_r789784163



##########
File path: airflow/decorators/__init__.py
##########
@@ -44,3 +45,7 @@ def __getattr__(self, name: str) -> TaskDecorator:
 
 
 task = _TaskDecoratorFactory()
+
+
+if TYPE_CHECKING:
+    TaskDecoratorFactory = _TaskDecoratorFactory

Review comment:
       This was added as part of resolving those errors: 
   
   ```
   airflow/models/dag.py:91: error: Module "airflow.decorators" has no attribute
   "TaskDecoratorFactory"; maybe "_TaskDecoratorFactory" or "TaskDecorator"? 
   [attr-defined]
           from airflow.decorators import TaskDecoratorFactory
           ^
   ```




-- 
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]


Reply via email to