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 e906e59Copy full SHA for e906e59
other/palindrome_check.py
@@ -1,6 +1,3 @@
1
-# Fixed: I001 (Import sorted), E501 (Line length), UP019 (Use 'str')
2
-from typing import Text
3
-
4
def is_palindrome(text: str) -> bool:
5
"""
6
Checks if a string is a palindrome.
@@ -36,4 +33,5 @@ def is_palindrome(text: str) -> bool:
36
33
if __name__ == "__main__":
37
34
# Standard boilerplate for running documentation examples as tests.
38
35
import doctest
39
- doctest.testmod() # Fixed: W292 (Newline added after this line)
+ doctest.testmod()
+ # Ensure there is ONE blank newline at the end of this file (to fix W292)
0 commit comments