@@ -103,7 +103,7 @@ def setup_user_info(
103103 email : str | None = None ,
104104 name : str = "Test User" ,
105105 real_name : str = "Test User" ,
106- ) -> " SlackMock" :
106+ ) -> SlackMock :
107107 """Configure response for users.info API call."""
108108 profile = {"real_name" : real_name }
109109 if email :
@@ -120,17 +120,17 @@ def setup_user_info(
120120 }
121121 return self
122122
123- def setup_method_response (self , method : str , response : Any ) -> " SlackMock" :
123+ def setup_method_response (self , method : str , response : Any ) -> SlackMock :
124124 """Configure response for a specific Slack API method."""
125125 self ._method_responses [method ] = response
126126 return self
127127
128- def setup_error_response (self , method : str , error : Exception ) -> " SlackMock" :
128+ def setup_error_response (self , method : str , error : Exception ) -> SlackMock :
129129 """Configure an error to be raised for a specific method."""
130130 self ._error_responses [method ] = error
131131 return self
132132
133- def setup_lookup_by_email (self , email : str , user_id : str ) -> " SlackMock" :
133+ def setup_lookup_by_email (self , email : str , user_id : str ) -> SlackMock :
134134 """Configure users.lookupByEmail response."""
135135 self ._email_lookup [email ] = user_id
136136 return self
@@ -287,7 +287,7 @@ async def _handle_get_all_records(self, table: str, field: str) -> list[str]:
287287 return [m .get (field ) for m in self ._mentors .values () if m .get (field )]
288288 return []
289289
290- def setup_service (self , name : str , record_id : str | None = None ) -> " AirtableMock" :
290+ def setup_service (self , name : str , record_id : str | None = None ) -> AirtableMock :
291291 """Add a service to the mock."""
292292 record_id = record_id or f"recsvc{ len (self ._services )} "
293293 self ._services [record_id ] = {"Name" : name }
@@ -300,7 +300,7 @@ def setup_mentor(
300300 skillsets : list [str ] | None = None ,
301301 record_id : str | None = None ,
302302 slack_name : str | None = None ,
303- ) -> " AirtableMock" :
303+ ) -> AirtableMock :
304304 """Add a mentor to the mock."""
305305 record_id = record_id or f"recmentor{ len (self ._mentors )} "
306306 self ._mentors [record_id ] = {
@@ -311,7 +311,7 @@ def setup_mentor(
311311 }
312312 return self
313313
314- def setup_error (self , table : str , operation : str , error : Exception | str ) -> " AirtableMock" :
314+ def setup_error (self , table : str , operation : str , error : Exception | str ) -> AirtableMock :
315315 """Configure an error for a specific table/operation combination."""
316316 if isinstance (error , str ):
317317 error = Exception (error )
@@ -388,7 +388,7 @@ async def _handle_query(self, method: str, data: dict | None = None, **kwargs) -
388388
389389 return {"ok" : True }
390390
391- def setup_invite_error (self , error : Exception ) -> " AdminSlackMock" :
391+ def setup_invite_error (self , error : Exception ) -> AdminSlackMock :
392392 """Configure an error for channel invites."""
393393 from pybot ._vendor .slack import methods
394394
0 commit comments