From 569377545926875d4510ae91a85bcb3670021e84 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Thu, 19 Oct 2023 15:31:33 +0545 Subject: [PATCH] refactor: use int as the factory (#10036) makes it thread-safe if we need in the future. Also looks a bit clean. --- tests/func/test_daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/func/test_daemon.py b/tests/func/test_daemon.py index 97120a53a..d803ee3d8 100644 --- a/tests/func/test_daemon.py +++ b/tests/func/test_daemon.py @@ -40,7 +40,7 @@ UPDATER_INFO_STR = json.dumps(UPDATER_INFO).encode("utf8") def make_request_handler(): class RequestHandler(SimpleHTTPRequestHandler): # save requests count for each method - hits: Dict[str, int] = defaultdict(lambda: 0) + hits: Dict[str, int] = defaultdict(int) def do_POST(self): # noqa: N802 # analytics endpoint