@@ -74,6 +74,11 @@ class CurrentUserEmailManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTManag
7474 _obj_cls = CurrentUserEmail
7575 _create_attrs = RequiredOptional (required = ("email" ,))
7676
77+ def get (
78+ self , id : Union [str , int ], lazy : bool = False , ** kwargs : Any
79+ ) -> CurrentUserEmail :
80+ return cast (CurrentUserEmail , super ().get (id = id , lazy = lazy , ** kwargs ))
81+
7782
7883class CurrentUserGPGKey (ObjectDeleteMixin , RESTObject ):
7984 pass
@@ -84,6 +89,11 @@ class CurrentUserGPGKeyManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTMana
8489 _obj_cls = CurrentUserGPGKey
8590 _create_attrs = RequiredOptional (required = ("key" ,))
8691
92+ def get (
93+ self , id : Union [str , int ], lazy : bool = False , ** kwargs : Any
94+ ) -> CurrentUserGPGKey :
95+ return cast (CurrentUserGPGKey , super ().get (id = id , lazy = lazy , ** kwargs ))
96+
8797
8898class CurrentUserKey (ObjectDeleteMixin , RESTObject ):
8999 _short_print_attr = "title"
@@ -94,6 +104,11 @@ class CurrentUserKeyManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTManager
94104 _obj_cls = CurrentUserKey
95105 _create_attrs = RequiredOptional (required = ("title" , "key" ))
96106
107+ def get (
108+ self , id : Union [str , int ], lazy : bool = False , ** kwargs : Any
109+ ) -> CurrentUserKey :
110+ return cast (CurrentUserKey , super ().get (id = id , lazy = lazy , ** kwargs ))
111+
97112
98113class CurrentUserStatus (SaveMixin , RESTObject ):
99114 _id_attr = None
@@ -357,6 +372,9 @@ class UserEmailManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTManager):
357372 _from_parent_attrs = {"user_id" : "id" }
358373 _create_attrs = RequiredOptional (required = ("email" ,))
359374
375+ def get (self , id : Union [str , int ], lazy : bool = False , ** kwargs : Any ) -> UserEmail :
376+ return cast (UserEmail , super ().get (id = id , lazy = lazy , ** kwargs ))
377+
360378
361379class UserActivities (RESTObject ):
362380 _id_attr = "username"
@@ -388,6 +406,9 @@ class UserGPGKeyManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTManager):
388406 _from_parent_attrs = {"user_id" : "id" }
389407 _create_attrs = RequiredOptional (required = ("key" ,))
390408
409+ def get (self , id : Union [str , int ], lazy : bool = False , ** kwargs : Any ) -> UserGPGKey :
410+ return cast (UserGPGKey , super ().get (id = id , lazy = lazy , ** kwargs ))
411+
391412
392413class UserKey (ObjectDeleteMixin , RESTObject ):
393414 pass
@@ -424,6 +445,11 @@ class UserImpersonationTokenManager(NoUpdateMixin, RESTManager):
424445 )
425446 _list_filters = ("state" ,)
426447
448+ def get (
449+ self , id : Union [str , int ], lazy : bool = False , ** kwargs : Any
450+ ) -> UserImpersonationToken :
451+ return cast (UserImpersonationToken , super ().get (id = id , lazy = lazy , ** kwargs ))
452+
427453
428454class UserMembership (RESTObject ):
429455 _id_attr = "source_id"
@@ -435,6 +461,11 @@ class UserMembershipManager(RetrieveMixin, RESTManager):
435461 _from_parent_attrs = {"user_id" : "id" }
436462 _list_filters = ("type" ,)
437463
464+ def get (
465+ self , id : Union [str , int ], lazy : bool = False , ** kwargs : Any
466+ ) -> UserMembership :
467+ return cast (UserMembership , super ().get (id = id , lazy = lazy , ** kwargs ))
468+
438469
439470# Having this outside projects avoids circular imports due to ProjectUser
440471class UserProject (RESTObject ):
0 commit comments