Nataneljpwd commented on code in PR #52700:
URL: https://github.com/apache/airflow/pull/52700#discussion_r2270883079


##########
providers/sftp/src/airflow/providers/sftp/hooks/sftp.py:
##########
@@ -816,7 +831,7 @@ async def get_mod_time(self, path: str) -> str:  # type: 
ignore[return]
                 sftp_client = await ssh_conn.start_sftp_client()
                 ftp_mdtm = await sftp_client.stat(path)
                 modified_time = ftp_mdtm.mtime
-                mod_time = 
datetime.datetime.fromtimestamp(modified_time).strftime("%Y%m%d%H%M%S")  # 
type: ignore[arg-type]
+                mod_time = 
datetime.datetime.fromtimestamp(modified_time).strftime("%Y%m%d%H%M%S")  # 
type: ignore

Review Comment:
   removed the type ignore alltogether



##########
providers/sftp/src/airflow/providers/sftp/sensors/sftp.py:
##########
@@ -67,6 +67,7 @@ def __init__(
         python_callable: Callable | None = None,
         op_args: list | None = None,
         op_kwargs: dict[str, Any] | None = None,
+        managed_conn: bool = True,

Review Comment:
   done



-- 
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]

Reply via email to