Skip to content

Commit

Permalink
[type_hint] remove extra type hint from docs. (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
akkefa committed Apr 27, 2023
1 parent 44500cd commit f7f0aa2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions urduhack/normalization/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def normalize_characters(text: str) -> str:
Replace ``urdu`` text characters with correct ``unicode`` characters.
Args:
text (str): ``Urdu`` text
text : ``Urdu`` text
Returns:
str: Returns a ``str`` object containing normalized text.
Examples:
Expand Down Expand Up @@ -142,7 +142,7 @@ def normalize_combine_characters(text: str) -> str:
Replace combine|join ``urdu`` characters with single unicode character
Args:
text (str): ``Urdu`` text
text : ``Urdu`` text
Returns:
str: Returns a ``str`` object containing normalized text.
Examples:
Expand All @@ -164,7 +164,7 @@ def punctuations_space(text: str) -> str:
Add spaces after punctuations used in ``urdu`` writing
Args:
text (str): ``Urdu`` text
text : ``Urdu`` text
Returns:
str: Returns a ``str`` object containing normalized text.
Examples:
Expand All @@ -185,7 +185,7 @@ def remove_diacritics(text: str) -> str:
This function returns a String object which contains the original text minus Urdu diacritics.
Args:
text (str): ``Urdu`` text
text : ``Urdu`` text
Returns:
str: Returns a ``str`` object containing normalized text.
Examples:
Expand Down Expand Up @@ -238,7 +238,7 @@ def replace_digits(text: str, with_english: bool = True) -> str:
Replace urdu digits with English digits and vice versa
Args:
text (str): Urdu text string
text : Urdu text string
with_english (bool): Boolean to convert digits from one language to other
Returns:
Text string with replaced digits
Expand All @@ -255,7 +255,7 @@ def normalize(text: str) -> str:
and diacritics removed.
Args:
text (str): ``Urdu`` text
text : ``Urdu`` text
Returns:
str: Normalized ``Urdu`` text
Raises:
Expand Down

0 comments on commit f7f0aa2

Please sign in to comment.