aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2023-03-29 21:50:05 +0000
committerDan Albert <danalbert@google.com>2023-03-29 21:50:05 +0000
commit12e45e4fbecb3df95c7a8d026c9a4465965a3c90 (patch)
tree22b3b1f8487bddd88b3860a8e61b058476fd8dd6
parent242574e9d9b2e17672d9fdbcebc42e8bfa46f8ca (diff)
downloadexternal_updater-12e45e4fbecb3df95c7a8d026c9a4465965a3c90.tar.gz
Fix the mypy regressions I introduced :(
Bug: None Test: mypy . Change-Id: Icf490a5cfd2e493c8f503dcab6e626425ff24069
-rw-r--r--external_updater.py2
-rw-r--r--fileutils.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/external_updater.py b/external_updater.py
index 68550fb..49b6883 100644
--- a/external_updater.py
+++ b/external_updater.py
@@ -120,7 +120,7 @@ def _do_update(args: argparse.Namespace, updater: Updater,
return
try:
- rel_proj_path = fileutils.get_relative_project_path(full_path)
+ rel_proj_path = str(fileutils.get_relative_project_path(full_path))
except ValueError:
# Absolute paths to other trees will not be relative to our tree. There are
# not portable instructions for upgrading that project, since the path will
diff --git a/fileutils.py b/fileutils.py
index 09aab37..789dc7c 100644
--- a/fileutils.py
+++ b/fileutils.py
@@ -111,7 +111,7 @@ def write_metadata(proj_path: Path, metadata: metadata_pb2.MetaData, keep_date:
date.month = now.month
date.day = now.day
try:
- rel_proj_path = get_relative_project_path(proj_path)
+ rel_proj_path = str(get_relative_project_path(proj_path))
except ValueError:
# Absolute paths to other trees will not be relative to our tree. There are
# not portable instructions for upgrading that project, since the path will