Skip to content

Commit cc311a0

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

other/palindrome_check.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Fixed: I001 (Import sorted), E501 (Line length), UP019 (Use 'str')
2-
from typing import Text
1+
from typing import Text # Imports the 'Text' type for clarity (optional, but good practice)
32

43
def is_palindrome(text: str) -> bool:
54
"""
@@ -36,4 +35,4 @@ def is_palindrome(text: str) -> bool:
3635
if __name__ == "__main__":
3736
# Standard boilerplate for running documentation examples as tests.
3837
import doctest
39-
doctest.testmod() # Fixed: W292 (Newline added after this line)
38+
doctest.testmod()

0 commit comments

Comments
 (0)