@@ -1102,7 +1102,7 @@ class MembersParametersSchema(BaseSchema):
11021102 ordering = fields .Str (allow_none = True )
11031103
11041104 @post_load
1105- def return_members_parameters (self , data : Dict [str , Any ], ** kwargs : Dict [ str , Any ] ):
1105+ def make_members_parameters (self , data : Dict [str , Any ], ** kwargs : Any ):
11061106 return MembersParameters (** data )
11071107
11081108
@@ -1142,7 +1142,7 @@ class MemberSchema(BaseSchema):
11421142 def return_member (
11431143 self ,
11441144 data : Dict [str , Any ],
1145- ** kwargs : Dict [ str , Any ] ,
1145+ ** kwargs : Any ,
11461146 ):
11471147 return Member (** data )
11481148
@@ -1161,9 +1161,7 @@ class UpdateMemberSchema(BaseSchema):
11611161 active = fields .Bool (allow_none = True )
11621162
11631163 @post_dump
1164- def access_level_value (
1165- self , data : Dict [str , Any ], ** kwargs : Dict [str , Any ]
1166- ) -> Dict [str , Any ]:
1164+ def access_level_value (self , data : Dict [str , Any ], ** kwargs : Any ) -> Dict [str , Any ]:
11671165 if "access_level" in data :
11681166 data ["access_level" ] = AccessLevel (data ["access_level" ]).value
11691167 return data
@@ -1316,10 +1314,10 @@ class TeamInvitationSchema(BaseSchema):
13161314 incident_permission = fields .Enum (IncidentPermission , by_value = True , required = True )
13171315
13181316 @post_load
1319- def return_member (
1317+ def make_team_invitation (
13201318 self ,
13211319 data : Dict [str , Any ],
1322- ** kwargs : Dict [ str , Any ] ,
1320+ ** kwargs : Any ,
13231321 ):
13241322 return TeamInvitation (** data )
13251323
@@ -1342,7 +1340,7 @@ class CreateTeamInvitationSchema(BaseSchema):
13421340 incident_permission = fields .Enum (IncidentPermission , by_value = True , required = True )
13431341
13441342 @post_load
1345- def return_team_invitation (self , data : Dict [str , Any ], ** kwargs : Dict [ str , Any ] ):
1343+ def make_team_invitation (self , data : Dict [str , Any ], ** kwargs : Any ):
13461344 return CreateTeamInvitation (** data )
13471345
13481346 class Meta :
@@ -1367,9 +1365,7 @@ class TeamMembershipParameterSchema(BaseSchema):
13671365 member_id = fields .Int (allow_none = True )
13681366
13691367 @post_load
1370- def return_team_membership_parameter (
1371- self , data : Dict [str , Any ], ** kwargs : Dict [str , Any ]
1372- ):
1368+ def make_team_member_parameter (self , data : Dict [str , Any ], ** kwargs : Any ):
13731369 return TeamMemberParameter (** data )
13741370
13751371 class Meta :
@@ -1398,7 +1394,7 @@ class TeamMemberSchema(BaseSchema):
13981394 incident_permission = fields .Enum (IncidentPermission , by_value = True , required = True )
13991395
14001396 @post_load
1401- def return_team_membership (self , data : Dict [str , Any ], ** kwargs : Dict [ str , Any ] ):
1397+ def make_team_member (self , data : Dict [str , Any ], ** kwargs : Any ):
14021398 return TeamMember (** data )
14031399
14041400
@@ -1434,9 +1430,7 @@ class CreateTeamMemberSchema(BaseSchema):
14341430 incident_permission = fields .Enum (IncidentPermission , by_value = True , required = True )
14351431
14361432 @post_load
1437- def return_create_team_membership (
1438- self , data : Dict [str , Any ], ** kwargs : Dict [str , Any ]
1439- ):
1433+ def make_create_team_member (self , data : Dict [str , Any ], ** kwargs : Any ):
14401434 return CreateTeamMember (** data )
14411435
14421436
@@ -1510,7 +1504,7 @@ class InvitationSchema(BaseSchema):
15101504 date = fields .DateTime (required = True )
15111505
15121506 @post_load
1513- def return_invitation (self , data : Dict [str , Any ], ** kwargs : Dict [ str , Any ] ):
1507+ def make_invitation (self , data : Dict [str , Any ], ** kwargs : Any ):
15141508 return Invitation (** data )
15151509
15161510
@@ -1542,7 +1536,7 @@ class CreateInvitationSchema(BaseSchema):
15421536 access_level = fields .Enum (AccessLevel , by_value = True , required = True )
15431537
15441538 @post_load
1545- def return_invitation (self , data : Dict [str , Any ], ** kwargs : Dict [ str , Any ] ):
1539+ def make_create_invitation (self , data : Dict [str , Any ], ** kwargs : Any ):
15461540 return CreateInvitation (** data )
15471541
15481542
0 commit comments