summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/deployments.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects/deployments.py')
-rw-r--r--gitlab/v4/objects/deployments.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/v4/objects/deployments.py b/gitlab/v4/objects/deployments.py
index 8b4a7be..9aee699 100644
--- a/gitlab/v4/objects/deployments.py
+++ b/gitlab/v4/objects/deployments.py
@@ -1,3 +1,5 @@
+from typing import Any, cast, Union
+
from gitlab.base import RequiredOptional, RESTManager, RESTObject
from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin
@@ -28,3 +30,8 @@ class ProjectDeploymentManager(RetrieveMixin, CreateMixin, UpdateMixin, RESTMana
_create_attrs = RequiredOptional(
required=("sha", "ref", "tag", "status", "environment")
)
+
+ def get(
+ self, id: Union[str, int], lazy: bool = False, **kwargs: Any
+ ) -> ProjectDeployment:
+ return cast(ProjectDeployment, super().get(id=id, lazy=lazy, **kwargs))