multimeric commented on issue #60860:
URL: https://github.com/apache/airflow/issues/60860#issuecomment-4107391160
Here's a test script that demonstrates the behaviour:
<details>
```python
import os
import tempfile
with tempfile.NamedTemporaryFile(suffix=".sqlite3", delete=False) as tmpfile:
os.environ["AIRFLOW__DATABASE__SQL_ALCHEMY_CONN"] =
f"sqlite:///{tmpfile.name}"
from airflow.utils.db import upgradedb
upgradedb()
from airflow.sdk import dag, task
@dag
def demo_dag():
@task
def return_number() -> int:
return 2
demo_dag().test()
```
</details>
I tested this with 3.0.6 and it was not present, then with 3.1.0 and it was,
so it must have been 3.1.0 that introduced this issue.
Then I `git bisect`ed the repo to find when the bug was introduced. It was
7ea7fcdda67bbbec7fd41977e24c7d3fc9055e91.
--
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]