diff --git a/chikkarpy/chikkar.py b/chikkarpy/chikkar.py index 64f996d..03b5af4 100644 --- a/chikkarpy/chikkar.py +++ b/chikkarpy/chikkar.py @@ -12,7 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -from .dictionarylib import Dictionary +from typing import TYPE_CHECKING + + +if TYPE_CHECKING: + from .dictionarylib import Dictionary class Chikkar(object): diff --git a/requirements.txt b/requirements.txt index 3f0bc24..21519db 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ dartsclone~=0.9.0 -sortedcontainers~=2.1.0 +sortedcontainers>=2.1.0 diff --git a/setup.py b/setup.py index 41c4074..458e7f0 100644 --- a/setup.py +++ b/setup.py @@ -16,9 +16,6 @@ from setuptools import find_packages, setup - -download_dictionary() - setup( name="chikkarpy", use_scm_version=True, @@ -37,6 +34,9 @@ }, install_requires=[ "dartsclone~=0.9.0", - "sortedcontainers~=2.1.0" + "sortedcontainers>=2.1.0" ] ) + +# Downloads the Sudachi Synonym dictionary +download_dictionary()