| commit | f7b7c6e438bd9533e4679ee339a86df8a5567220 | [log] [tgz] |
|---|---|---|
| author | George Burgess IV <gbiv@google.com> | Mon Oct 30 12:03:26 2023 -0600 |
| committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Nov 06 16:46:27 2023 +0000 |
| tree | 68dd8b4aca36b72a1c9713f41125479ec6d197a0 | |
| parent | 958ebe2313a94b7234f0099b07c682e68e216636 [diff] |
check-presubmit: move `get_from_pip` under `get_pip` check mypy was complaining about the `pip + ["show", "mypy"]` here, since `pip`'s inferred type is `Optional[_]`. Moving this function's definition below the `if not pip` check assures `mypy` that this function is only ever called if `pip` has a value. BUG=b:308443233 TEST=repo upload Change-Id: Iecef039d64bc5102d4d4171e85d39914119df1e0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4989913 Commit-Queue: George Burgess <gbiv@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Reviewed-by: Bob Haarman <inglorion@chromium.org>
toolchain-utilsVarious utilities used by the ChromeOS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help, or refer to the header of the script for more information.