From 94caecf36e6ad1ac004f0b613d344f76c51fa0cc Mon Sep 17 00:00:00 2001 From: tkgowtham Date: Wed, 2 Oct 2024 20:12:01 +0530 Subject: [PATCH] Update dbscan.py with annotation for dict1 --- machine_learning/dbscan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine_learning/dbscan.py b/machine_learning/dbscan.py index 262b46b11..90fec1c0a 100644 --- a/machine_learning/dbscan.py +++ b/machine_learning/dbscan.py @@ -124,7 +124,7 @@ class DbScan: else: data = pd.DataFrame(list(self.file)) e = self.radius - dict1 = {} + dict1: dict[int, list[int]] = {} for i in range(len(data)): for j in range(len(data)): dist = math.sqrt(