@@ -24,10 +24,8 @@ class GroupExportManager(GetWithoutIdMixin, CreateMixin, RESTManager):
24
24
_obj_cls = GroupExport
25
25
_from_parent_attrs = {"group_id" : "id" }
26
26
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 ))
31
29
32
30
33
31
class GroupImport (RESTObject ):
@@ -39,10 +37,8 @@ class GroupImportManager(GetWithoutIdMixin, RESTManager):
39
37
_obj_cls = GroupImport
40
38
_from_parent_attrs = {"group_id" : "id" }
41
39
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 ))
46
42
47
43
48
44
class ProjectExport (DownloadMixin , RefreshMixin , RESTObject ):
@@ -55,10 +51,8 @@ class ProjectExportManager(GetWithoutIdMixin, CreateMixin, RESTManager):
55
51
_from_parent_attrs = {"project_id" : "id" }
56
52
_create_attrs = RequiredOptional (optional = ("description" ,))
57
53
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 ))
62
56
63
57
64
58
class ProjectImport (RefreshMixin , RESTObject ):
@@ -70,7 +64,5 @@ class ProjectImportManager(GetWithoutIdMixin, RESTManager):
70
64
_obj_cls = ProjectImport
71
65
_from_parent_attrs = {"project_id" : "id" }
72
66
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