agreenburg opened a new issue, #47129: URL: https://github.com/apache/airflow/issues/47129
### Apache Airflow Provider(s) sftp ### Versions of Apache Airflow Providers apache-airflow-providers-sftp 5.1.0 ### Apache Airflow version 2.10.4+astro.1 ### Operating System Astronomer Runtime 12.6.0 ### Deployment Astronomer ### Deployment details _No response_ ### What happened We have python operator code that expects SFTPHook.get_conn() to return a paramiko.SFTPClient instance. In 5.1.0 this code was changed to return Generator[SFTPClient] instead. This is causing this existing code to fail: `conn = sftpHook.get_conn()` `conn.listdir_attr(remoteRootDir)` with this error: AttributeError: '_GeneratorContextManager' object has no attribute 'listdir_attr' Reverting to version 5.0.0 allows the code to run as before. ### What you think should happen instead Breaking changes should be documented in the changelog. ### How to reproduce `conn = sftpHook.get_conn()` `conn.listdir_attr(remoteRootDir)` ### Anything else _No response_ ### Are you willing to submit 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
