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/07/09 03:25:15 UTC

[GitHub] [airflow] AndrewTsao opened a new issue, #24936: TaskFlowApi's decorators should provide type hints

AndrewTsao opened a new issue, #24936:
URL: https://github.com/apache/airflow/issues/24936

   ### Description
   
   I find no type hints when write a DAG use TaskFlowApi.  `dag` and `task` decorator is a simple wrapper without detail arguments provide in docstring.
   
   ### Use case/motivation
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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.apache.org

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


[GitHub] [airflow] AndrewTsao commented on issue #24936: TaskFlowApi's decorators should provide type hints

Posted by GitBox <gi...@apache.org>.
AndrewTsao commented on issue #24936:
URL: https://github.com/apache/airflow/issues/24936#issuecomment-1179482649

   Thank you for your reply.
   
   I use VSCode with Python extensions too. python==3.7 apache-airflow==2.3.2.  
   I can't get any hint when I'm input `@dag(`. no argument hints.
   
   


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


[GitHub] [airflow] uranusjr commented on issue #24936: Type hints for taskflow @dag decorator

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #24936:
URL: https://github.com/apache/airflow/issues/24936#issuecomment-1181579683

   I edited the title to better reflect the issue.


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


[GitHub] [airflow] boring-cyborg[bot] commented on issue #24936: TaskFlowApi's decorators should provide type hints

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #24936:
URL: https://github.com/apache/airflow/issues/24936#issuecomment-1179469676

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


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


[GitHub] [airflow] uranusjr commented on issue #24936: TaskFlowApi's decorators should provide type hints

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #24936:
URL: https://github.com/apache/airflow/issues/24936#issuecomment-1179472649

   What environment do you use? Both of them already provide autocomplete for me in VSCode.


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


[GitHub] [airflow] uranusjr closed issue #24936: Type hints for taskflow @dag decorator

Posted by GitBox <gi...@apache.org>.
uranusjr closed issue #24936: Type hints for taskflow @dag decorator
URL: https://github.com/apache/airflow/issues/24936


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


[GitHub] [airflow] AndrewTsao commented on issue #24936: TaskFlowApi's decorators should provide type hints

Posted by GitBox <gi...@apache.org>.
AndrewTsao commented on issue #24936:
URL: https://github.com/apache/airflow/issues/24936#issuecomment-1179483395

   I find   `__init__.pyi` in `airflow.decorators` module in the main branch, but no `dag` and `task` typing definition in it.


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


[GitHub] [airflow] potiuk commented on issue #24936: TaskFlowApi's decorators should provide type hints

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #24936:
URL: https://github.com/apache/airflow/issues/24936#issuecomment-1181516596

   In my Intellij Dag does not work:
   ![image](https://user-images.githubusercontent.com/595491/178454191-a1b92eae-b932-491e-8e80-5936b64ddcd8.png)
   
   
   While task works:
   ![image](https://user-images.githubusercontent.com/595491/178454313-7a6fce65-baca-49b7-9ae7-caa49afbb656.png)
   


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