From 62b3a1f60569ef8c0bba48956b0c193b4da137b9 Mon Sep 17 00:00:00 2001 From: fynnfluegge Date: Sun, 4 Feb 2024 22:53:52 +0100 Subject: [PATCH] chore: fix TypeError in utils --- codeqai/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeqai/utils.py b/codeqai/utils.py index 3c60974..7ab0243 100644 --- a/codeqai/utils.py +++ b/codeqai/utils.py @@ -51,7 +51,7 @@ def get_file_extension(file_name: str) -> str: return os.path.splitext(file_name)[-1] -def get_langchain_language(language: Language) -> text_splitter.Language | None: +def get_langchain_language(language: Language): if language == Language.PYTHON: return text_splitter.Language.PYTHON elif language == Language.JAVASCRIPT: