Skip to content

Commit 9d34500

Browse files
committed
more fixing type
1 parent 7d861ff commit 9d34500

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

packages/slackBotFunction/app/services/dynamo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
logger = get_logger()
77

88

9-
def get_state_information(key: str) -> GetItemOutputTableTypeDef:
9+
def get_state_information(key: dict[str, Any]) -> GetItemOutputTableTypeDef:
1010
start_time = time()
1111
table = get_slack_bot_state_table()
1212
is_success = True

packages/slackBotFunction/app/slack/slack_events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ def store_feedback(
312312
user_id: str,
313313
channel_id: str,
314314
client: WebClient,
315-
thread_ts: str = None,
316-
message_ts: str = None,
317-
feedback_text: str = None,
315+
thread_ts: str | None = None,
316+
message_ts: str | None = None,
317+
feedback_text: str | None = None,
318318
) -> None:
319319
"""
320320
Store user feedback with reference to Q&A record

packages/slackBotFunction/app/slack/slack_handlers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def mention_handler(event: Dict[str, Any], ack: Ack, body: Dict[str, Any], clien
8181
event=event,
8282
event_id=event_id,
8383
post_to_thread=True,
84-
body=body,
8584
)
8685

8786

@@ -105,7 +104,6 @@ def dm_message_handler(event: Dict[str, Any], event_id: str, client: WebClient,
105104
event=event,
106105
event_id=event_id,
107106
post_to_thread=False,
108-
body=body,
109107
)
110108

111109

@@ -147,7 +145,6 @@ def thread_message_handler(event: Dict[str, Any], event_id: str, client: WebClie
147145
event=event,
148146
event_id=event_id,
149147
post_to_thread=True,
150-
body=body,
151148
)
152149

153150

@@ -237,7 +234,6 @@ def _common_message_handler(
237234
event: Dict[str, Any],
238235
event_id: str,
239236
post_to_thread: bool,
240-
body: Dict[str, Any],
241237
) -> None:
242238
channel_id = event["channel"]
243239
user_id = event.get("user", "unknown")

0 commit comments

Comments
 (0)