python (3.12.0)
1 from typing import List, Optional
2
3 import pip._internal.utils.inject_securetransport # noqa
4 from pip._internal.utils import _log
5
6 # init_logging() must be called before any call to logging.getLogger()
7 # which happens at import of most modules.
8 _log.init_logging()
9
10
11 def main(args: (Optional[List[str]]) = None) -> int:
12 """This is preserved for old console scripts that may still be referencing
13 it.
14
15 For additional details, see https://github.com/pypa/pip/issues/7498.
16 """
17 from pip._internal.utils.entrypoints import _wrapper
18
19 return _wrapper(args)