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