Skip to content

Commit 061d78f

Browse files
style: Fix TRY300 linting issue by using a variable
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent 8b43cf2 commit 061d78f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

airbyte/_executors/python.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ def get_installed_version(
193193
env=env,
194194
).strip()
195195
# Parse version from uv pip show output
196+
version = None
196197
for line in output.splitlines():
197198
if line.startswith("Version:"):
198-
return line.split(":", 1)[1].strip()
199-
else:
200-
continue
201-
return None
199+
version = line.split(":", 1)[1].strip()
200+
break
201+
return version
202202
except Exception:
203203
if raise_on_error:
204204
raise

0 commit comments

Comments
 (0)