kaxil commented on PR #51627:
URL: https://github.com/apache/airflow/pull/51627#issuecomment-2964043764
Mypy is failing:
```
task-sdk/src/airflow/sdk/execution_time/supervisor.py:1580: error:
Incompatible
types in assignment (expression has type "TextIOWrapper", variable has type
"Optional[BufferedWriter]") [assignment]
log_file_descriptor = log_file.open("a", buffering=1)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
task-sdk/src/airflow/sdk/execution_time/supervisor.py:1581: error: Argument 1
to "WriteLogger" has incompatible type "Optional[BufferedWriter]"; expected
"Optional[TextIO]" [arg-type]
...ing_logger: WrappedLogger = structlog.WriteLogger(log_file_descriptor)
^~~~~~~~~~~~~~~~~~~
Found 2 errors in 1 file (checked 110 source files)
Error 1 returned
```
--
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]