Expand single character iteration variable

This commit is contained in:
Ethan Paul 2024-08-20 13:58:13 -04:00
parent 198287a633
commit bbb075a1de
Signed by: enpaul
GPG Key ID: 07F53B438281D181

View File

@ -341,7 +341,7 @@ def dedupe_packages(
seen: Set[poetry.core.packages.package.Package] = set() seen: Set[poetry.core.packages.package.Package] = set()
# Make this faster, avoid method lookup below # Make this faster, avoid method lookup below
seen_add = seen.add seen_add = seen.add
return [p for p in packages if not (p in seen or seen_add(p))] return [item for item in packages if not (item in seen or seen_add(item))]
def convert_virtualenv(venv: tox.tox_env.api.ToxEnv) -> poetry.utils.env.VirtualEnv: def convert_virtualenv(venv: tox.tox_env.api.ToxEnv) -> poetry.utils.env.VirtualEnv: