From d8df42f9bd8a935846fb29c8aba161493732673a Mon Sep 17 00:00:00 2001 From: Sanjiv Das Date: Thu, 14 Nov 2024 09:38:11 -0800 Subject: [PATCH] Update file.py --- packages/jupyter-ai/jupyter_ai/context_providers/file.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/jupyter-ai/jupyter_ai/context_providers/file.py b/packages/jupyter-ai/jupyter_ai/context_providers/file.py index 06b2dbcd0..88cc8b893 100644 --- a/packages/jupyter-ai/jupyter_ai/context_providers/file.py +++ b/packages/jupyter-ai/jupyter_ai/context_providers/file.py @@ -50,9 +50,7 @@ def _make_path(self, path: str, is_abs: bool, is_dir: bool) -> str: if is_dir: path += "/" return path - - import os - + def get_file_type(self, filepath): """ Determine the file type of the given file path.