summaryrefslogtreecommitdiff
path: root/src/pip/_internal/commands/completion.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove typing.TYPE_CHECKING guardsJon Dufresne2021-02-191-5/+2
| | | | | | | | | | | 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
* Replace pip._internal.utils.typing with stdlib typingJon Dufresne2021-02-181-2/+2
| | | | | | | | 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.
* Remove __future__ importsJon Dufresne2020-12-241-2/+0
| | | | Unnecessary since dropping Python 2.
* Update linter: isortPradyun Gedam2020-09-231-1/+1
|
* fix(_internal/commands): Define a default add_option to child commandsgutsytechster2020-05-231-7/+7
|
* refactor(commands): Add method add_options and remove __init__gutsytechster2020-05-231-8/+4
| | | | | This removes the __init__ method of child classes and defines explicit method for adding command options.
* Always return SUCCESS from commands.completion.runDevesh Kumar Singh2020-05-151-2/+2
|
* Remove Any type from run functionDevesh Kumar Singh2020-04-201-1/+1
|
* Type annotations for completion and debug in commandsDevesh Kumar Singh2020-04-151-3/+10
|
* 👹 Feed the hobgoblins (delint).Jason R. Coombs2020-03-061-1/+2
|
* Convert the remaining '%' formatters to '.format'. Fixes #6973.Jason R. Coombs2020-03-061-13/+11
|
* string_formattingDeepak Sharma2020-01-301-1/+1
|
* add per-file disallow_untyped_defs=False, and set it to True globallyMaxim Kurnikov2019-09-291-0/+3
|
* Merge branch 'master' into maint/merge-5924Chris Hunt2019-08-061-2/+1
|\
| * Only import a Command class when it is actually needed.Chris Jerdonek2019-07-261-2/+1
| | | | | | | | | | This resulted in an approximate 24% speed-up of a vanilla `pip` invocation on one system (0.477 secs before, 0.363 secs after).
* | pip autocompletion should silence of KeyboardInterruptsAni Hayrapetyan2018-10-261-2/+2
|/
* Rename basecommand -> base_commandPradyun Gedam2018-07-301-1/+1
|
* Move basecommand to pip._internal.cliPradyun Gedam2018-07-291-1/+1
|
* Use correct executable name for completion command (#4755)Dustin Ingram2017-10-121-6/+11
|
* Move all internal APIs to pip._internalDonald Stufft2017-08-311-0/+89