Skip to content

Commit 06ab277

Browse files
committed
Fix mypy error for can_string_be_rearranged_as_pal
1 parent 9cb5760 commit 06ab277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

strings/can_string_be_rearranged_as_palindrome.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def can_string_be_rearranged_as_palindrome(input_str: str = "") -> bool:
4343
return True
4444
lower_case_input_str = input_str.replace(" ", "").lower()
4545
# character_freq_dict: Stores the frequency of every character in the input string
46-
character_freq_dict = {}
46+
character_freq_dict: dict[str, int] = {}
4747

4848
for character in lower_case_input_str:
4949
character_freq_dict[character] = character_freq_dict.get(character, 0) + 1

0 commit comments

Comments
 (0)