Skip to content
Snippets Groups Projects
Unverified Commit 6440ceb5 authored by Siraj R Aizlewood's avatar Siraj R Aizlewood
Browse files

Corrected comment in replace.py module.

parent 8f0e7f2e
No related branches found
No related tags found
No related merge requests found
......@@ -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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment