Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/tools.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mypy==1.15.0
mypy==1.16.0
flake8==7.2.0
black==24.8.0 # Until we drop Python 3.6 support, we have to stay with this version
2 changes: 1 addition & 1 deletion slack_bolt/adapter/falcon/async_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

resp.status = "404"
# Falcon 4.x w/ mypy fails to correctly infer the str type here
resp.body = "The page is not found..." # type: ignore[assignment]
resp.body = "The page is not found..."

Check warning on line 45 in slack_bolt/adapter/falcon/async_resource.py

View check run for this annotation

Codecov / codecov/patch

slack_bolt/adapter/falcon/async_resource.py#L45

Added line #L45 was not covered by tests

async def on_post(self, req: Request, resp: Response):
bolt_req = await self._to_bolt_request(req)
Expand Down
4 changes: 2 additions & 2 deletions slack_bolt/adapter/falcon/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

resp.status = "404"
# Falcon 4.x w/ mypy fails to correctly infer the str type here
resp.body = "The page is not found..." # type: ignore[assignment]
resp.body = "The page is not found..."

Check warning on line 39 in slack_bolt/adapter/falcon/resource.py

View check run for this annotation

Codecov / codecov/patch

slack_bolt/adapter/falcon/resource.py#L39

Added line #L39 was not covered by tests

def on_post(self, req: Request, resp: Response):
bolt_req = self._to_bolt_request(req)
Expand All @@ -53,7 +53,7 @@
def _write_response(self, bolt_resp: BoltResponse, resp: Response):
if falcon_version.__version__.startswith("2."):
# Falcon 4.x w/ mypy fails to correctly infer the str type here
resp.body = bolt_resp.body # type: ignore[assignment]
resp.body = bolt_resp.body

Check warning on line 56 in slack_bolt/adapter/falcon/resource.py

View check run for this annotation

Codecov / codecov/patch

slack_bolt/adapter/falcon/resource.py#L56

Added line #L56 was not covered by tests
else:
resp.text = bolt_resp.body

Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ def _register_listener(
CustomListener(
app_name=self.name,
ack_function=functions.pop(0),
lazy_functions=functions,
lazy_functions=functions, # type:ignore[arg-type]
matchers=listener_matchers,
middleware=listener_middleware,
auto_acknowledgement=auto_acknowledgement,
Expand Down
2 changes: 1 addition & 1 deletion slack_bolt/app/async_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ def _register_listener(
AsyncCustomListener(
app_name=self.name,
ack_function=functions.pop(0),
lazy_functions=functions,
lazy_functions=functions, # type:ignore[arg-type]
matchers=listener_matchers,
middleware=listener_middleware,
auto_acknowledgement=auto_acknowledgement,
Expand Down
Loading