Skip to content

Commit 284e649

Browse files
pmbrullclaude
andcommitted
style(ometa): apply ruff formatting to sse_client
Output of `make py_format` after the previous commits in this branch: ruff collapses a few multi-line expressions onto one line where they fit within the line width. No functional change. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 7950230 commit 284e649

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

ingestion/src/metadata/ingestion/ometa/sse_client.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,19 +101,13 @@ def stream(
101101
"params": opts.get("params"),
102102
"stream": True,
103103
"timeout": timeout,
104-
"verify": (
105-
self.config.verify if self.config.verify is not None else True
106-
),
104+
"verify": (self.config.verify if self.config.verify is not None else True),
107105
"allow_redirects": (
108-
self.config.allow_redirects
109-
if self.config.allow_redirects is not None
110-
else True
106+
self.config.allow_redirects if self.config.allow_redirects is not None else True
111107
),
112108
"cookies": self.config.cookies,
113109
}
114-
with requests.Session() as session, session.request(
115-
**request_kwargs
116-
) as response:
110+
with requests.Session() as session, session.request(**request_kwargs) as response:
117111
response.raise_for_status()
118112
self.logger.info("Connected to SSE stream")
119113

0 commit comments

Comments
 (0)