-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Remove toolz.itertoolz.concatv
#12020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1e4b802
to
1526698
Compare
@@ -905,13 +911,13 @@ def _make_link_actions(transaction_context, package_info, target_prefix, request | |||
# register_private_env_actions = () | |||
|
|||
# the ordering here is significant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah? YOU're significant
dae43a7
to
f3e318d
Compare
*grouped_precs.get(PackageType.VIRTUAL_PYTHON_WHEEL, ()), | ||
*grouped_precs.get(PackageType.VIRTUAL_PYTHON_EGG_MANAGEABLE, ()), | ||
*grouped_precs.get(PackageType.VIRTUAL_PYTHON_EGG_UNMANAGEABLE, ()), | ||
# *grouped_precs.get(PackageType.SHADOW_PYTHON_EGG_LINK, ()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea what PackageType.SHADOW_PYTHON_EGG_LINK
refers to, so I'm worried potentially important information will get lost.
I'm OK with transforms like this one not including any refactors (that happen to be nearby the transform). LGTM. |
Standard Python's argument unpacking is sufficient since all of these cases do not need to be lazily evaluated via generators.
Co-authored-by: Jannis Leidel <jannis@leidel.info>
fe6d3d9
to
ea020c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -327,7 +327,7 @@ def push_record(record): | |||
# add feature records for the solver | |||
known_features = set() | |||
for rec in reduced_index.values(): | |||
known_features.update(concatv(rec.track_features, rec.features)) | |||
known_features.update((*rec.track_features, *rec.features)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good remembering it winds up with ((
and ))
on either side
* Stop using toolz.concatv Standard Python's argument unpacking is sufficient since all of these cases do not need to be lazily evaluated via generators. * Include vendor licenses and remove legacy vendoring Co-authored-by: Jannis Leidel <jannis@leidel.info>
Description
Opting to use argument unpacking instead of
toolz.itertoolz.concatv
. All of the uses ofconcatv
were immediately expanded into static types, so the generatorconcatv
returned was unnecessary.Alternative to #11769
Checklist - did you ...
news
directory (using the template) for the next release's release notes?Add / update outdated documentation?