summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects/wikis.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects/wikis.py')
-rw-r--r--gitlab/v4/objects/wikis.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/gitlab/v4/objects/wikis.py b/gitlab/v4/objects/wikis.py
index a86b442..e372d86 100644
--- a/gitlab/v4/objects/wikis.py
+++ b/gitlab/v4/objects/wikis.py
@@ -1,3 +1,5 @@
+from typing import Any, cast, Union
+
from gitlab.base import RequiredOptional, RESTManager, RESTObject
from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin
@@ -24,6 +26,11 @@ class ProjectWikiManager(CRUDMixin, RESTManager):
_update_attrs = RequiredOptional(optional=("title", "content", "format"))
_list_filters = ("with_content",)
+ def get(
+ self, id: Union[str, int], lazy: bool = False, **kwargs: Any
+ ) -> ProjectWiki:
+ return cast(ProjectWiki, super().get(id=id, lazy=lazy, **kwargs))
+
class GroupWiki(SaveMixin, ObjectDeleteMixin, RESTObject):
_id_attr = "slug"
@@ -39,3 +46,6 @@ class GroupWikiManager(CRUDMixin, RESTManager):
)
_update_attrs = RequiredOptional(optional=("title", "content", "format"))
_list_filters = ("with_content",)
+
+ def get(self, id: Union[str, int], lazy: bool = False, **kwargs: Any) -> GroupWiki:
+ return cast(GroupWiki, super().get(id=id, lazy=lazy, **kwargs))