summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/environments.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects/environments.py')
-rw-r--r--gitlab/v4/objects/environments.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gitlab/v4/objects/environments.py b/gitlab/v4/objects/environments.py
index 6eec069..35f2fb2 100644
--- a/gitlab/v4/objects/environments.py
+++ b/gitlab/v4/objects/environments.py
@@ -1,4 +1,4 @@
-from typing import Any, Dict, Union
+from typing import Any, cast, Dict, Union
import requests
@@ -48,3 +48,8 @@ class ProjectEnvironmentManager(
_from_parent_attrs = {"project_id": "id"}
_create_attrs = RequiredOptional(required=("name",), optional=("external_url",))
_update_attrs = RequiredOptional(optional=("name", "external_url"))
+
+ def get(
+ self, id: Union[str, int], lazy: bool = False, **kwargs: Any
+ ) -> ProjectEnvironment:
+ return cast(ProjectEnvironment, super().get(id=id, lazy=lazy, **kwargs))