Skip to content

Commit 4753905

Browse files
authored
Sort imports
1 parent ebdb494 commit 4753905

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pythainlp/util/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"text_to_arabic_digit",
4949
"text_to_num",
5050
"text_to_thai_digit",
51+
"th_zodiac",
5152
"thai_digit_to_arabic_digit",
5253
"thai_keyboard_dist",
5354
"thai_strptime",
@@ -60,10 +61,9 @@
6061
"time_to_thaiword",
6162
"tis620_to_utf8",
6263
"to_idna",
64+
"to_lunar_date",
6365
"tone_detector",
6466
"words_to_num",
65-
"to_lunar_date",
66-
"th_zodiac",
6767
]
6868

6969
from pythainlp.util import spell_words
@@ -116,17 +116,18 @@
116116
isthaichar,
117117
thai_word_tone_detector,
118118
)
119+
from pythainlp.util.thai_lunar_date import th_zodiac, to_lunar_date
119120
from pythainlp.util.thaiwordcheck import is_native_thai
120121
from pythainlp.util.time import thaiword_to_time, time_to_thaiword
121122
from pythainlp.util.trie import Trie, dict_trie
122123
from pythainlp.util.wordtonum import text_to_num, thaiword_to_num, words_to_num
123124

124-
# sound_syllable and pronounce have to be imported last
125+
# sound_syllable and pronounce have to be imported last because of dependencies
126+
# Other imports should be above this line, sorted.
125127
from pythainlp.util.syllable import (
126128
sound_syllable,
127129
syllable_length,
128130
syllable_open_close_detector,
129131
tone_detector,
130132
)
131133
from pythainlp.util.pronounce import rhyme
132-
from pythainlp.util.thai_lunar_date import to_lunar_date, th_zodiac

0 commit comments

Comments
 (0)