This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch v2-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 2b9f6d05124d4d343d9c64e5c5eaf7bd28ab4065 Author: Léni Marvaud <[email protected]> AuthorDate: Sun Jun 19 23:27:30 2022 +0200 Add missing types to FSHook (#24470) Fix mypy error : ``` error: Call to untyped function "FSHook" in typed context [no-untyped-call] ``` When using : ```python fs_hook = FSHook(fs_conn_id) ``` (cherry picked from commit d4eeede1fa65d626c6ce0d17f2c3c61f6b003162) --- airflow/hooks/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/hooks/filesystem.py b/airflow/hooks/filesystem.py index d9ad6ded1c..c694940c2a 100644 --- a/airflow/hooks/filesystem.py +++ b/airflow/hooks/filesystem.py @@ -33,13 +33,13 @@ class FSHook(BaseHook): Extra: {"path": "/tmp"} """ - def __init__(self, conn_id='fs_default'): + def __init__(self, conn_id: str = 'fs_default'): super().__init__() conn = self.get_connection(conn_id) self.basepath = conn.extra_dejson.get('path', '') self.conn = conn - def get_conn(self): + def get_conn(self) -> None: pass def get_path(self) -> str:
