fix(lint): resolve remaining ruff errors and unblock MCP SSE test (#1)
This commit is contained in:
parent
a7c30b12cd
commit
98eebe62bf
17 changed files with 60 additions and 87 deletions
|
|
@ -147,10 +147,6 @@ def _add_service_name(_, __, event_dict: dict[str, Any]) -> dict[str, Any]:
|
|||
|
||||
def _add_request_id_if_present(_, __, event_dict: dict[str, Any]) -> dict[str, Any]:
|
||||
"""Pull request_id from contextvars (set by middleware) if present."""
|
||||
try:
|
||||
import contextvars
|
||||
except ImportError:
|
||||
return event_dict
|
||||
# The middleware (or FastAPI dependency) sets this. We don't import
|
||||
# the middleware here to avoid circular imports.
|
||||
return event_dict
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue