1- from typing import Any , cast , Optional , Union
1+ from typing import Any , cast
22
33from gitlab .base import RESTManager , RESTObject
44from gitlab .mixins import GetWithoutIdMixin , RefreshMixin
@@ -24,10 +24,8 @@ class ProjectAdditionalStatisticsManager(GetWithoutIdMixin, RESTManager):
2424 _obj_cls = ProjectAdditionalStatistics
2525 _from_parent_attrs = {"project_id" : "id" }
2626
27- def get (
28- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
29- ) -> ProjectAdditionalStatistics :
30- return cast (ProjectAdditionalStatistics , super ().get (id = id , ** kwargs ))
27+ def get (self , ** kwargs : Any ) -> ProjectAdditionalStatistics :
28+ return cast (ProjectAdditionalStatistics , super ().get (** kwargs ))
3129
3230
3331class IssuesStatistics (RefreshMixin , RESTObject ):
@@ -38,10 +36,8 @@ class IssuesStatisticsManager(GetWithoutIdMixin, RESTManager):
3836 _path = "/issues_statistics"
3937 _obj_cls = IssuesStatistics
4038
41- def get (
42- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
43- ) -> IssuesStatistics :
44- return cast (IssuesStatistics , super ().get (id = id , ** kwargs ))
39+ def get (self , ** kwargs : Any ) -> IssuesStatistics :
40+ return cast (IssuesStatistics , super ().get (** kwargs ))
4541
4642
4743class GroupIssuesStatistics (RefreshMixin , RESTObject ):
@@ -53,10 +49,8 @@ class GroupIssuesStatisticsManager(GetWithoutIdMixin, RESTManager):
5349 _obj_cls = GroupIssuesStatistics
5450 _from_parent_attrs = {"group_id" : "id" }
5551
56- def get (
57- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
58- ) -> GroupIssuesStatistics :
59- return cast (GroupIssuesStatistics , super ().get (id = id , ** kwargs ))
52+ def get (self , ** kwargs : Any ) -> GroupIssuesStatistics :
53+ return cast (GroupIssuesStatistics , super ().get (** kwargs ))
6054
6155
6256class ProjectIssuesStatistics (RefreshMixin , RESTObject ):
@@ -68,7 +62,5 @@ class ProjectIssuesStatisticsManager(GetWithoutIdMixin, RESTManager):
6862 _obj_cls = ProjectIssuesStatistics
6963 _from_parent_attrs = {"project_id" : "id" }
7064
71- def get (
72- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
73- ) -> ProjectIssuesStatistics :
74- return cast (ProjectIssuesStatistics , super ().get (id = id , ** kwargs ))
65+ def get (self , ** kwargs : Any ) -> ProjectIssuesStatistics :
66+ return cast (ProjectIssuesStatistics , super ().get (** kwargs ))
0 commit comments