mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-19 12:39:59 +08:00
Fix: type violations. (#6262)
### What problem does this PR solve? #6238 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
dd81c30976
commit
49086964b8
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user