Skip to content
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

Misc fixes #8253

Merged
merged 7 commits into from
Aug 4, 2023
Merged

Misc fixes #8253

merged 7 commits into from
Aug 4, 2023

Conversation

dimbleby
Copy link
Contributor

@dimbleby dimbleby commented Jul 29, 2023

A small collection of updates and clean-ups: not fixing anything in particular but keeping current, preparing for deprecations, tightening type-checking, etc.

Probably best reviewed one commit at a time.

Comment on lines -477 to -480
if len(unsatisfied) == 1:
dependency = unsatisfied[0]
else:
dependency = min(*unsatisfied, key=_get_min)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be a performance optimization, but I suppose it does not matter. If it was an optimization it should have a comment telling us so anyway.

poetry is already using requests, and the docstring for requests.utils
indicates that "this module provides utility functions ... that are also
useful for external consumption".

ie there's no reason copy the code, just use it.
@radoering radoering merged commit 88096ac into python-poetry:master Aug 4, 2023
16 checks passed
@dimbleby dimbleby deleted the misc-fixes branch August 4, 2023 13:55
Copy link

github-actions bot commented Mar 3, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants