fix: resolve mypy type errors in test file

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
claude[bot] 2026-03-31 23:54:53 +00:00
parent f530a1e562
commit 8629ac756e

View file

@ -16,7 +16,7 @@ import inspect
from pathlib import Path
def test_log_features_uses_thread_sensitive_true():
def test_log_features_uses_thread_sensitive_true() -> None:
"""Test that log_features uses thread_sensitive=True to prevent pool exhaustion.
This test verifies that the @sync_to_async decorator on log_features
@ -78,7 +78,7 @@ def test_log_features_uses_thread_sensitive_true():
# Verify thread_sensitive=True (not False)
if isinstance(thread_sensitive_arg, ast.Constant):
assert thread_sensitive_arg.value is True, (
f"thread_sensitive should be True, got {thread_sensitive_arg.value}. "
f"thread_sensitive should be True, got {thread_sensitive_arg.value!r}. "
"This causes PostgreSQL connection pool exhaustion!"
)
else: