aboutsummaryrefslogtreecommitdiff
path: root/pw_package/py/pw_package/package_manager.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2023-01-11 23:43:00 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-01-11 23:43:00 +0000
commitdc0e4b207516fe383b14c1380f7d357d4e0105cb (patch)
tree82f2947bdaca18877b1c6b7ddd976b0692811898 /pw_package/py/pw_package/package_manager.py
parente9e9157cddd08c5d0d2ed167efa9a9b3310d1cb0 (diff)
downloadpigweed-dc0e4b207516fe383b14c1380f7d357d4e0105cb.tar.gz
pw_env_setup: Update mypy to 0.991 and mypy-protobuf to 3.3.0
The setup.cfg file requires only mypy-protobuf>=3.2.0 but we pin down 3.3.0 for pigweed in the constraint.list file. Workaround the issues found by the new mypy. Test: pw presubmit Change-Id: I5ab9b5e4485c17f7afb5eafbd4604a04af8ce897 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126270 Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Alex Deymo <deymo@google.com>
Diffstat (limited to 'pw_package/py/pw_package/package_manager.py')
-rw-r--r--pw_package/py/pw_package/package_manager.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/pw_package/py/pw_package/package_manager.py b/pw_package/py/pw_package/package_manager.py
index 4d3db7380..6221798ec 100644
--- a/pw_package/py/pw_package/package_manager.py
+++ b/pw_package/py/pw_package/package_manager.py
@@ -61,16 +61,22 @@ class Package:
if os.path.exists(path):
shutil.rmtree(path)
- def status(self, path: pathlib.Path) -> bool: # pylint: disable=no-self-use
+ def status( # pylint: disable=no-self-use
+ self,
+ path: pathlib.Path, # pylint: disable=unused-argument
+ ) -> bool:
"""Returns if package is installed at path and current.
This method will be skipped if the directory does not exist.
"""
+ return False
- def info(
- self, path: pathlib.Path
- ) -> Sequence[str]: # pylint: disable=no-self-use
+ def info( # pylint: disable=no-self-use
+ self,
+ path: pathlib.Path, # pylint: disable=unused-argument
+ ) -> Sequence[str]:
"""Returns a short string explaining how to enable the package."""
+ return []
_PACKAGES: Dict[str, Package] = {}