You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/21 16:03:11 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #21020: Fix last remaining MyPy errors

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org