Skip to content

Commit

Permalink
Add notes on circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bact authored Nov 15, 2024
1 parent 4753905 commit 95d38ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pythainlp/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@
from pythainlp.util.trie import Trie, dict_trie
from pythainlp.util.wordtonum import text_to_num, thaiword_to_num, words_to_num

# sound_syllable and pronounce have to be imported last because of dependencies
# sound_syllable and pronounce have to be imported last,
# to prevent circular import issues.
# Other imports should be above this line, sorted.
from pythainlp.util.syllable import (
sound_syllable,
Expand Down

0 comments on commit 95d38ca

Please sign in to comment.