Skip to content

Commit b5d86b3

Browse files
sir-kokabilinter-bot
authored andcommitted
fix auto-fixable linting errors
1 parent 27bd96f commit b5d86b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hazm/stemmer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def stem(self: "Stemmer", word: str) -> str:
5050
>>> stemmer.stem('اندیشه‌اش')
5151
'اندیشه'
5252
>>> stemmer.stem('خانۀ')
53-
'خانه'
53+
'خانه'
5454
5555
Args:
5656
word: کلمه‌ای که باید ریشهٔ آن پیدا شود.
@@ -63,7 +63,7 @@ def stem(self: "Stemmer", word: str) -> str:
6363
if word.endswith(end):
6464
word = word[:-len(end)]
6565

66-
if word.endswith('ۀ'):
67-
word = word[:-1] + 'ه'
66+
if word.endswith("ۀ"):
67+
word = word[:-1] + "ه"
6868

6969
return word

tests/test_stemmer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class TestStemmer:
1010
("کتاب‌هایی", "کتاب"),
1111
("کتابهایشان", "کتاب"),
1212
("اندیشه‌اش", "اندیشه"),
13-
("خانهٔ", "خانه"),
13+
("خانهٔ", "خانه"),
1414
(" ", " "),
1515
("", ""),
1616
])

0 commit comments

Comments
 (0)