From f84ac6fb1385060f6c8c848c0e40369d694b793d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 2 Apr 2025 12:56:34 +0000 Subject: [PATCH 1/2] chore(deps): bump flake8 from 7.1.2 to 7.2.0 Bumps [flake8](https://github.com/pycqa/flake8) from 7.1.2 to 7.2.0. - [Commits](https://github.com/pycqa/flake8/compare/7.1.2...7.2.0) --- updated-dependencies: - dependency-name: flake8 dependency-version: 7.2.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements/tools.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/tools.txt b/requirements/tools.txt index cbdebf8b5..0fd423ad2 100644 --- a/requirements/tools.txt +++ b/requirements/tools.txt @@ -1,3 +1,3 @@ mypy==1.15.0 -flake8==7.1.2 +flake8==7.2.0 black==24.8.0 # Until we drop Python 3.6 support, we have to stay with this version From 6a77bbbe637c920dd04952dd0030910d22896b5c Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Wed, 2 Apr 2025 10:05:10 -0400 Subject: [PATCH 2/2] We do not need to nonlocal keyword because the variables are not reassigned --- slack_bolt/listener/thread_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slack_bolt/listener/thread_runner.py b/slack_bolt/listener/thread_runner.py index 0b79c6ffd..c144daf1d 100644 --- a/slack_bolt/listener/thread_runner.py +++ b/slack_bolt/listener/thread_runner.py @@ -111,7 +111,7 @@ def run( if not request.lazy_only: # start the listener function asynchronously def run_ack_function_asynchronously(): - nonlocal ack, request, response + nonlocal response try: self.listener_start_handler.handle( request=request,