From 6440ceb56154f58214b947845e4edcb7aa4df0fc Mon Sep 17 00:00:00 2001
From: Siraj R Aizlewood <siraj@aurelio.ai>
Date: Fri, 3 May 2024 23:13:29 +0400
Subject: [PATCH] Corrected comment in replace.py module.

---
 replace.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/replace.py b/replace.py
index 508c3f33..2e8c8c59 100644
--- a/replace.py
+++ b/replace.py
@@ -9,7 +9,7 @@ def replace_type_hints(file_path):
     # Decode the file data with error handling
     file_data = file_data.decode("utf-8", errors="ignore")
 
-    # Regular expression pattern to find 'Optional[dict[int, int]]' and replace with 'Optional[dict[int, int]]'
+    # Regular expression pattern to find 'dict[Type1, Type2] | None' and replace with 'Optional[dict[Type1, Type2]]'
     file_data = re.sub(
         r"dict\[(\w+), (\w+)\]\s*\|\s*None", r"Optional[dict[\1, \2]]", file_data
     )
-- 
GitLab