1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tests/lib
Jon Dufresne 8683413501 Use keyword-only arguments
https://www.python.org/dev/peps/pep-3102/

Replaces the pattern: self.name = kwargs.pop('name')

Keyword-only arguments offer some advantages:

- In the event of a typo or misuse, a more informative error is
  presented to the programmer.

- More self documenting and makes interfaces more explicit.

- They more easily allow explicit typing.

Adding types to ConfigOptionParser required changing some call sites to
pass arguments without using a dict due to mypy bug:
https://github.com/python/mypy/issues/9676
2021-01-29 21:15:36 -08:00
..
__init__.py Use keyword-only arguments 2021-01-29 21:15:36 -08:00
certs.py Replace typing.Text with str 2020-12-24 16:40:55 -08:00
configuration_helpers.py Remove object from class definitions 2020-12-25 15:48:11 -08:00
filesystem.py Revert "remove _copy_source_tree and friends" 2020-05-13 02:50:10 +05:30
git_submodule_helpers.py Remove __future__ imports 2020-12-24 08:38:09 -08:00
index.py Use f-strings for simple string formatting 2020-12-25 16:21:20 -08:00
local_repos.py Prefer subprocess.DEVNULL over open(os.devnull, 'w') 2020-12-27 08:37:08 -08:00
options_helpers.py Remove object from class definitions 2020-12-25 15:48:11 -08:00
path.py Remove encoding cookie from Python source files 2020-12-25 07:26:07 -08:00
requests_mocks.py Remove object from class definitions 2020-12-25 15:48:11 -08:00
server.py Merge pull request #9354 from jdufresne/super 2020-12-25 19:18:28 +00:00
test_lib.py Use f-strings for simple string formatting 2020-12-25 16:21:20 -08:00
test_wheel.py Remove redundant Python 2.7 code 2020-12-22 09:06:26 +02:00
venv.py Merge pull request #9361 from jdufresne/f-strings 2020-12-26 10:24:18 +00:00
wheel.py Drop csv23 in favor of stdlib csv 2020-12-27 08:09:32 -08:00