@@ -24,10 +24,8 @@ class GroupExportManager(GetWithoutIdMixin, CreateMixin, RESTManager):
2424 _obj_cls = GroupExport
2525 _from_parent_attrs = {"group_id" : "id" }
2626
27- def get (
28- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
29- ) -> Optional [GroupExport ]:
30- return cast (Optional [GroupExport ], super ().get (id = id , ** kwargs ))
27+ def get (self , id : Optional [Union [int , str ]] = None , ** kwargs : Any ) -> GroupExport :
28+ return cast (GroupExport , super ().get (id = id , ** kwargs ))
3129
3230
3331class GroupImport (RESTObject ):
@@ -39,10 +37,8 @@ class GroupImportManager(GetWithoutIdMixin, RESTManager):
3937 _obj_cls = GroupImport
4038 _from_parent_attrs = {"group_id" : "id" }
4139
42- def get (
43- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
44- ) -> Optional [GroupImport ]:
45- return cast (Optional [GroupImport ], super ().get (id = id , ** kwargs ))
40+ def get (self , id : Optional [Union [int , str ]] = None , ** kwargs : Any ) -> GroupImport :
41+ return cast (GroupImport , super ().get (id = id , ** kwargs ))
4642
4743
4844class ProjectExport (DownloadMixin , RefreshMixin , RESTObject ):
@@ -55,10 +51,8 @@ class ProjectExportManager(GetWithoutIdMixin, CreateMixin, RESTManager):
5551 _from_parent_attrs = {"project_id" : "id" }
5652 _create_attrs = RequiredOptional (optional = ("description" ,))
5753
58- def get (
59- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
60- ) -> Optional [ProjectExport ]:
61- return cast (Optional [ProjectExport ], super ().get (id = id , ** kwargs ))
54+ def get (self , id : Optional [Union [int , str ]] = None , ** kwargs : Any ) -> ProjectExport :
55+ return cast (ProjectExport , super ().get (id = id , ** kwargs ))
6256
6357
6458class ProjectImport (RefreshMixin , RESTObject ):
@@ -70,7 +64,5 @@ class ProjectImportManager(GetWithoutIdMixin, RESTManager):
7064 _obj_cls = ProjectImport
7165 _from_parent_attrs = {"project_id" : "id" }
7266
73- def get (
74- self , id : Optional [Union [int , str ]] = None , ** kwargs : Any
75- ) -> Optional [ProjectImport ]:
76- return cast (Optional [ProjectImport ], super ().get (id = id , ** kwargs ))
67+ def get (self , id : Optional [Union [int , str ]] = None , ** kwargs : Any ) -> ProjectImport :
68+ return cast (ProjectImport , super ().get (id = id , ** kwargs ))
0 commit comments