Richard Si
Richard Si
In https://github.com/python/mypy/pull/14747, I used `dict_items`, `dict_keys`, and `dict_values` in a stub fixture, however, they weren't defined anyway. For some reason we don't generate errors even though these are undefined. Maybe...
**Before**:  **After**:  Towards https://github.com/pypa/pip/issues/10421. :sparkles:
Resolves GH-2761. 
### setuptools version 69.0.3 ### Python version CPython 3.11.7 ### OS Ubuntu 22.04.03 LTS ### Additional environment information _No response_ ### Description Happy New Year! :tada: I was debugging pip's...
importlib does not cache metadata in-memory, so querying even simple attributes like distribution names and versions can quickly become expensive (as each access requires reading `METADATA`). Fortunately, `Distribution.canonical_name` is optimized...
Rebased version of https://github.com/pypa/pip/pull/10601.
This eliminates a (very) small unnecessary performance penalty and reduces output clutter when the pip subprocess errors out.
- Removes BestCandidateResult's iter_all() and iter_applicable() methods as they were redundant - Removes ParsedLine's is_requirement attribute as it was awkward to use (to please mypy, you would need to add...
Tenacity is a 1600+ LOC dependency which is only used for a convenient `@retry` decorator... which is used a grand total of two times. This is a lot of code...
Towards: - #5380 - #8473 - #10421 This PR does two things: - Captures the ugly `Retrying (Retry(total=4 ...` urllib3 warnings and rewrites them to be understandable if possible -...