From ed19abcc312c88ac42703b945c7fd2e510625a04 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 8 Sep 2023 17:03:36 +0900 Subject: [PATCH] Correct type hints --- slack_bolt/request/async_request.py | 2 +- slack_bolt/request/request.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/slack_bolt/request/async_request.py b/slack_bolt/request/async_request.py index d5964b4e3..73891446e 100644 --- a/slack_bolt/request/async_request.py +++ b/slack_bolt/request/async_request.py @@ -29,7 +29,7 @@ def __init__( body: Union[str, dict], query: Optional[Union[str, Dict[str, str], Dict[str, Sequence[str]]]] = None, headers: Optional[Dict[str, Union[str, Sequence[str]]]] = None, - context: Optional[Dict[str, str]] = None, + context: Optional[Dict[str, Any]] = None, mode: str = "http", # either "http" or "socket_mode" ): """Request to a Bolt app. diff --git a/slack_bolt/request/request.py b/slack_bolt/request/request.py index 006ba4ec7..2a418a33f 100644 --- a/slack_bolt/request/request.py +++ b/slack_bolt/request/request.py @@ -29,7 +29,7 @@ def __init__( body: Union[str, dict], query: Optional[Union[str, Dict[str, str], Dict[str, Sequence[str]]]] = None, headers: Optional[Dict[str, Union[str, Sequence[str]]]] = None, - context: Optional[Dict[str, str]] = None, + context: Optional[Dict[str, Any]] = None, mode: str = "http", # either "http" or "socket_mode" ): """Request to a Bolt app.