uranusjr commented on PR #25426: URL: https://github.com/apache/airflow/pull/25426#issuecomment-1206264058
I think Mypy is too smart and can tell that `open(..., "wb")` does not accept str, so that would also fail. This is probably the solution with the least overhead ```python content = stream.readall() assert isinstance(content, bytes) fileblob.write(content) ``` -- 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]
