Skip to content

Commit 88afae5

Browse files
committed
Update warn_deprecation parameters
1 parent 794ec0f commit 88afae5

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

pythainlp/cls/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
from pythainlp.classify.param_free import GzipModel
1212
from pythainlp.tools import warn_deprecation
1313

14-
warn_deprecation("pythainlp.cls", "pythainlp.classify", "5.2")
14+
warn_deprecation("pythainlp.cls", "pythainlp.classify", "5.1", "5.2")

pythainlp/corpus/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ def thai_synonym() -> dict:
353353
warn_deprecation(
354354
"pythainlp.corpus.thai_synonym",
355355
"pythainlp.corpus.thai_synonyms",
356+
"5.1",
356357
"5.2",
357358
)
358359
return thai_synonyms()

pythainlp/util/normalize.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ def maiyamok(sent: Union[str, List[str]]) -> List[str]:
331331
# output: ['คน', 'คน', 'นก']
332332
"""
333333
warn_deprecation(
334-
"pythainlp.util.maiyamok", "pythainlp.util.expand_maiyamok", "5.2"
334+
"pythainlp.util.maiyamok",
335+
"pythainlp.util.expand_maiyamok",
336+
"5.0.5",
337+
"5.2",
335338
)
336339
return expand_maiyamok(sent)

pythainlp/util/thaiwordcheck.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def is_native_thai(word: str) -> bool:
88
warn_deprecation(
99
"pythainlp.util.is_native_thai",
1010
"pythainlp.morpheme.is_native_thai",
11+
"5.0",
1112
"5.1",
1213
)
1314

0 commit comments

Comments
 (0)