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.
2 parents 10dae9e + 025f1db commit cc311a0Copy full SHA for cc311a0
other/palindrome_check.py
@@ -1,5 +1,4 @@
1
-# Fixed: I001 (Import sorted), E501 (Line length), UP019 (Use 'str')
2
-from typing import Text
+from typing import Text # Imports the 'Text' type for clarity (optional, but good practice)
3
4
def is_palindrome(text: str) -> bool:
5
"""
@@ -36,4 +35,4 @@ def is_palindrome(text: str) -> bool:
36
35
if __name__ == "__main__":
37
# Standard boilerplate for running documentation examples as tests.
38
import doctest
39
- doctest.testmod() # Fixed: W292 (Newline added after this line)
+ doctest.testmod()
0 commit comments