Skip to content

Commit 7b5f109

Browse files
committed
update word_probability deprication warning
1 parent 43a2284 commit 7b5f109

File tree

3 files changed

+261
-206
lines changed

3 files changed

+261
-206
lines changed

spellchecker/spellchecker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def word_usage_frequency(self, word: KeyT, total_words: typing.Optional[int] = N
155155
word = ensure_unicode(word)
156156
return self._word_frequency.dictionary[word] / total_words
157157

158-
@deprecated("Deprecated as of version 0.6.1; use word_usage_frequency instead")
158+
@deprecated("Deprecated as of version 0.6.5; use word_usage_frequency instead")
159159
def word_probability(self, word: KeyT, total_words: typing.Optional[int] = None) -> float:
160160
"""Calculate the frequency to the `word` provided as seen across the
161161
entire dictionary; function was a misnomar and is therefore
@@ -169,7 +169,7 @@ def word_probability(self, word: KeyT, total_words: typing.Optional[int] = None)
169169
Note:
170170
Deprecated as of version 0.6.1; use `word_usage_frequency` instead
171171
Note:
172-
Will be removed in version 0.6.3"""
172+
Will be removed in version 0.6.4"""
173173
return self.word_usage_frequency(word, total_words)
174174

175175
def correction(self, word: KeyT) -> str:

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
''' Testing Module '''
1+
""" Testing Module """

0 commit comments

Comments
 (0)