Skip to content

Commit

Permalink
Update encoding.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Dec 3, 2023
1 parent d680c3b commit 0318054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pythainlp/util/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
def tis620_to_utf8(text: str)->str:
def tis620_to_utf8(text: str) -> str:
"""
Convert TIS-620 to UTF-8
Expand All @@ -31,7 +31,7 @@ def tis620_to_utf8(text: str)->str:
return text.encode("cp1252", "ignore").decode("tis-620")


def thai_to_idn(text: str)->str:
def thai_to_idn(text: str) -> str:
"""
Convert Thai text to International Domain Name (IDN) for Thai domain name.
Expand Down

0 comments on commit 0318054

Please sign in to comment.