Skip to content

Commit fa2af2b

Browse files
RonnyPfannschmidtCursor AIclaude
committed
cleanup(downstream): remove redundant type conversions in driver
Drop unnecessary dict(), list(), and type annotations where the types are already correct or inferred from context. Co-authored-by: Cursor AI <ai@cursor.sh> Co-authored-by: Anthropic Claude Opus 4 <claude@anthropic.com>
1 parent b6be9d9 commit fa2af2b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

downstream/run_downstream.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ def subprocess_env(
116116
extra: Mapping[str, str] | None,
117117
venv_home: Path | None,
118118
) -> dict[str, str]:
119-
env = {**os.environ, **dict(extra or {})}
119+
env = {**os.environ, **(extra or {})}
120120
# Empty-string values mean "remove from environment".
121-
for key, val in list(env.items()):
121+
for key, val in env.items():
122122
if val == "":
123123
del env[key]
124124
if venv_home is None:
@@ -198,7 +198,7 @@ def load_recipe(name: str) -> RecipeFile:
198198

199199
def build_uv_install_argv(*, venv_home: Path, env: EnvironmentUv) -> list[str]:
200200
py = str(venv_python(venv_home))
201-
args: list[str] = ["uv", "pip", "install", "--python", py]
201+
args = ["uv", "pip", "install", "--python", py]
202202
for g in env.groups:
203203
args.extend(["--group", g])
204204
for spec in env.editables:
@@ -236,7 +236,7 @@ def run_recipe(
236236
if not only_install:
237237
for step in recipe.test:
238238
run_cmd(
239-
list(step.argv),
239+
step.argv,
240240
cwd=dest,
241241
env=step.env or None,
242242
venv_home=venv_home,

0 commit comments

Comments
 (0)