You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/08/01 19:06:42 UTC

(tooling-trusted-release) branch main updated: Accept instances of None for binary and source artifact paths

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 19dbfc7  Accept instances of None for binary and source artifact paths
19dbfc7 is described below

commit 19dbfc797a0bd34cf21cf8ae5f853d5c545e4063
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Fri Aug 1 20:06:16 2025 +0100

    Accept instances of None for binary and source artifact paths
---
 atr/models/sql.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/atr/models/sql.py b/atr/models/sql.py
index 4f26c3d..ebe226e 100644
--- a/atr/models/sql.py
+++ b/atr/models/sql.py
@@ -559,13 +559,17 @@ Thanks,
     def policy_binary_artifact_paths(self) -> list[str]:
         if (policy := self.release_policy) is None:
             return []
-        return policy.binary_artifact_paths
+        # TODO: The type of policy.binary_artifact_paths is list[str]
+        # But the production server has None values
+        return policy.binary_artifact_paths or []
 
     @property
     def policy_source_artifact_paths(self) -> list[str]:
         if (policy := self.release_policy) is None:
             return []
-        return policy.source_artifact_paths
+        # TODO: The type of policy.source_artifact_paths is list[str]
+        # But the production server has None values
+        return policy.source_artifact_paths or []
 
     @property
     def policy_strict_checking(self) -> bool:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org