@@ -114,10 +114,10 @@ def __init__(self, user_id: str, user_profile_service: Optional[UserProfileServi
114114 self .profile_updated = False
115115 self .user_profile = UserProfile (user_id , {})
116116
117- def get_user_profile (self ):
117+ def get_user_profile (self ) -> None :
118118 return self .user_profile
119119
120- def load_user_profile (self , reasons : Optional [list [str ]]= [], error_handler : Optional [BaseErrorHandler ]= None ):
120+ def load_user_profile (self , reasons : Optional [list [str ]]= [], error_handler : Optional [BaseErrorHandler ]= None ) -> None :
121121 reasons = reasons if reasons else []
122122 try :
123123 user_profile = self .user_profile_service .lookup (self .user_id ) if self .user_profile_service else None
@@ -146,7 +146,7 @@ def load_user_profile(self, reasons: Optional[list[str]]=[], error_handler: Opti
146146 if self .user_profile is None :
147147 self .user_profile = UserProfile (self .user_id , {})
148148
149- def update_user_profile (self , experiment : Experiment , variation : Variation ):
149+ def update_user_profile (self , experiment : Experiment , variation : Variation ) -> None :
150150 if experiment .id in self .user_profile .experiment_bucket_map :
151151 decision = self .user_profile .experiment_bucket_map [experiment .id ]
152152 if isinstance (decision , decision_service .Decision ):
@@ -163,7 +163,7 @@ def update_user_profile(self, experiment: Experiment, variation: Variation):
163163 # self.logger.info(f'Updated variation "{variation.id}" of experiment "{experiment.id}" for user "{self.user_profile.user_id}".')
164164
165165
166- def save_user_profile (self , error_handler : Optional [BaseErrorHandler ] = None ):
166+ def save_user_profile (self , error_handler : Optional [BaseErrorHandler ] = None ) -> None :
167167 if not self .profile_updated :
168168 return
169169 try :
0 commit comments