Skip to content

Commit e906e59

Browse files
committed
Merge branch 'feature/palindrome-check' of https://github.com/Arzoo1701/Python into feature/palindrome-check
2 parents 10dae9e + 025f1db commit e906e59

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

other/palindrome_check.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# Fixed: I001 (Import sorted), E501 (Line length), UP019 (Use 'str')
2-
from typing import Text
3-
41
def is_palindrome(text: str) -> bool:
52
"""
63
Checks if a string is a palindrome.
@@ -36,4 +33,5 @@ def is_palindrome(text: str) -> bool:
3633
if __name__ == "__main__":
3734
# Standard boilerplate for running documentation examples as tests.
3835
import doctest
39-
doctest.testmod() # Fixed: W292 (Newline added after this line)
36+
doctest.testmod()
37+
# Ensure there is ONE blank newline at the end of this file (to fix W292)

0 commit comments

Comments
 (0)