Skip to content

Commit

Permalink
Update first_character_that_repeats.py
Browse files Browse the repository at this point in the history
kyu_6/first_character_that_repeats/first_character_that_repeats.py:8: error: Syntax error in type annotation  [syntax]
kyu_6/first_character_that_repeats/first_character_that_repeats.py:8: note: Suggestion: Use Tuple[T1, ..., Tn] instead of (T1, ..., Tn)
  • Loading branch information
ikostan committed Oct 24, 2024
1 parent dc961ff commit 981a34d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""


def first_dup(word: str) -> (str, None):
def first_dup(word: str) -> str| None:
"""
Find the first character that repeats
in a String and return that character.
Expand Down

0 comments on commit 981a34d

Please sign in to comment.