We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a74bd1a commit 025f1dbCopy full SHA for 025f1db
other/palindrome_check.py
@@ -1,4 +1,7 @@
1
-from typing import Text # Imports the 'Text' type for clarity (optional, but good practice)
+from typing import (
2
+ Text,
3
+) # Imports the 'Text' type for clarity (optional, but good practice)
4
+
5
6
def is_palindrome(text: Text) -> bool:
7
"""
@@ -37,4 +40,5 @@ def is_palindrome(text: Text) -> bool:
37
40
# When this file is run directly (python file.py), it executes the
38
41
# doctest examples inside the docstring to verify the function works.
39
42
import doctest
- doctest.testmod()
43
44
+ doctest.testmod()
0 commit comments