Skip to content

Commit 95d38ca

Browse files
authored
Add notes on circular imports
1 parent 4753905 commit 95d38ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythainlp/util/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@
122122
from pythainlp.util.trie import Trie, dict_trie
123123
from pythainlp.util.wordtonum import text_to_num, thaiword_to_num, words_to_num
124124

125-
# sound_syllable and pronounce have to be imported last because of dependencies
125+
# sound_syllable and pronounce have to be imported last,
126+
# to prevent circular import issues.
126127
# Other imports should be above this line, sorted.
127128
from pythainlp.util.syllable import (
128129
sound_syllable,

0 commit comments

Comments
 (0)