uranusjr commented on issue #32384:
URL: https://github.com/apache/airflow/issues/32384#issuecomment-1623360589
Hmm, I can’t reproduce with a clean environment:
```console
$ docker run -iqt --rm apache/airflow:2.6.2 bash
airflow@d1644eaceff2:/opt/airflow$ pip install mypy -q
airflow@d1644eaceff2:/opt/airflow$ printf 'from airflow.decorators import
dag, task
@task
def task_without_parens_is_fine() -> None:
...
@task()
def demo_type_error() -> None:
...
' > /opt/airflow/dags/t.py
airflow@d1644eaceff2:/opt/airflow$ cd dags
airflow@d1644eaceff2:/opt/airflow$ cat t.py
from airflow.decorators import dag, task
@task
def task_without_parens_is_fine() -> None:
...
@task()
def demo_type_error() -> None:
...
airflow@d1644eaceff2:/opt/airflow$ mypy t.py
Success: no issues found in 1 source file
```
--
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]