Damian Shaw
68529081c2
Enforce f-strings via Ruff ( #12393 )
2023-11-07 09:14:56 +00:00
Pradyun Gedam
94999255d5
Reformat the codebase, with black
2021-08-20 13:37:49 +01:00
Diego Ramirez
6958b87d3d
Complete type annotations: `pip/_internal/models` ( #10138 )
2021-07-12 11:43:52 +08:00
Tzu-ping Chung
56a8f3d8bd
Typing fixes
2021-03-10 16:40:58 +08:00
Jon Dufresne
0945809afc
Remove typing.TYPE_CHECKING guards
...
The typing module has been available since Python 3.5. Guarding the
import has been unnecessary since dropping Python 2.
Some guards remain to either:
- Avoid circular imports
- Importing objects that are also guarded by typing.TYPE_CHECKING
- Avoid mypy_extensions dependency
2021-02-19 18:34:21 -08:00
Jon Dufresne
a6392bd62e
Replace pip._internal.utils.typing with stdlib typing
...
The stdlib module has been available since Python 3.5 and the
TYPE_CHECKING constant has been available since 3.5.2.
By using stdlib, this removes the need for pip to maintain its own
Python 2 typing compatibility shim.
2021-02-18 19:09:13 -08:00
Jon Dufresne
c148bcc1aa
Use short Python3 super() syntax
2020-12-24 15:11:51 -08:00
Pradyun Gedam
25ab172b55
Update linter: isort
2020-09-23 19:52:28 +05:30
Cristina Muñoz
f6bf9a0065
Restrict dynamic attribute creation with slots
...
Fixes #7313 .
2020-05-21 19:04:12 -07:00
Maxim Kurnikov
3cb30385d8
remove disallow_untyped_defs=False for more modules
2019-12-13 10:22:21 +03:00
Pradyun Gedam
9b25cd512b
Rename InstallationCandidate.{project -> name}
2019-11-11 11:37:53 +05:30
Maxim Kurnikov
3692097cca
add per-file disallow_untyped_defs=False, and set it to True globally
2019-09-29 23:31:15 +02:00
Pradyun Gedam
f669719c96
Rename InstallationCandidate.{location -> link}
2019-07-20 12:41:22 +05:30
Chris Jerdonek
a447be4785
Update PackageFinder to support "yanked" files (PEP 592).
2019-06-26 02:32:40 -07:00
Maxim Kurnikov
f77b8ca051
remove #noqa: F401
2019-02-22 14:17:07 +03:00
Maxim Kurnikov
410072bc8b
add type annotations for pip._internal.models ( #6065 )
2018-12-17 16:42:36 +05:30
Pradyun Gedam
06314455e9
Add a utility for comparision logic and switch to it
...
It uses the operator module, instead of inline-lambdas
2018-06-24 02:38:22 +05:30
Pradyun Gedam
f1cf9a06e9
Move InstallationCandidate to models + add tests
2018-06-24 02:38:21 +05:30