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:
Kevin Hu 2025-03-19 12:12:34 +08:00 committed by GitHub
parent dd81c30976
commit 49086964b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: