From 83416f0ac2eb3bb707afbe851b51190eb981df02 Mon Sep 17 00:00:00 2001 From: Ronny Vedrilla Date: Wed, 28 Feb 2024 12:16:58 +0100 Subject: [PATCH] v9.5.1 --- ambient_toolbox/gitlab/coverage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ambient_toolbox/gitlab/coverage.py b/ambient_toolbox/gitlab/coverage.py index e7fdc35..027b3cd 100644 --- a/ambient_toolbox/gitlab/coverage.py +++ b/ambient_toolbox/gitlab/coverage.py @@ -5,6 +5,7 @@ import sys from difflib import ndiff from http import HTTPStatus +from typing import Optional import httpx @@ -55,7 +56,7 @@ def get_latest_target_branch_commit_sha(self) -> str: ) return result.stdout.decode("utf-8").strip() - def get_pipeline_id_by_commit_sha(self, sha: str) -> int | None: + def get_pipeline_id_by_commit_sha(self, sha: str) -> Optional[int]: pipeline_url = f"{self.pipelines_url_with_token}&sha={sha}" response = httpx.get(pipeline_url) status_code = response.status_code