From 49086964b8715220abc9789f4187db41087e4111 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Wed, 19 Mar 2025 12:12:34 +0800 Subject: [PATCH] Fix: type violations. (#6262) ### What problem does this PR solve? #6238 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/utils/__init__.py b/rag/utils/__init__.py index 11a2f7db9..8468bf4c3 100644 --- a/rag/utils/__init__.py +++ b/rag/utils/__init__.py @@ -100,7 +100,7 @@ def clean_markdown_block(text): return text.strip() -def get_float(v: str | int | float | None): +def get_float(v): if v is None: return float('-inf') try: