diff options
Diffstat (limited to 'gitlab/v4/objects/commits.py')
-rw-r--r-- | gitlab/v4/objects/commits.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gitlab/v4/objects/commits.py b/gitlab/v4/objects/commits.py index 3301824..b93dcdf 100644 --- a/gitlab/v4/objects/commits.py +++ b/gitlab/v4/objects/commits.py @@ -151,6 +151,11 @@ class ProjectCommitManager(RetrieveMixin, CreateMixin, RESTManager): optional=("author_email", "author_name"), ) + def get( + self, id: Union[str, int], lazy: bool = False, **kwargs: Any + ) -> ProjectCommit: + return cast(ProjectCommit, super().get(id=id, lazy=lazy, **kwargs)) + class ProjectCommitComment(RESTObject): _id_attr = None |