chore: prune mypy exclude list (#3561)

# What does this PR do?

prune the mypy exclude list, build a stronger foundation for quality
code


## Test Plan

ci
This commit is contained in:
Matthew Farrellee 2025-09-26 11:44:43 -04:00 committed by GitHub
parent c88c4ff2c6
commit 926c3ada41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 26 additions and 37 deletions

View file

@ -9,9 +9,13 @@ from datetime import datetime
import aiosqlite
from llama_stack.log import get_logger
from ..api import KVStore
from ..config import SqliteKVStoreConfig
logger = get_logger(name=__name__, category="providers::utils")
class SqliteKVStoreImpl(KVStore):
def __init__(self, config: SqliteKVStoreConfig):
@ -50,6 +54,9 @@ class SqliteKVStoreImpl(KVStore):
if row is None:
return None
value, expiration = row
if not isinstance(value, str):
logger.warning(f"Expected string value for key {key}, got {type(value)}, returning None")
return None
return value
async def delete(self, key: str) -> None: