File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1313
1414import requests
1515import tqdm
16+ from packaging .version import Version
1617
1718from .exceptions import PathError
1819from .utils import (
@@ -109,7 +110,7 @@ def confirm_java_compatibility(
109110 is_old_version = language_tool_version != "latest" and (
110111 (
111112 re .match (r"^\d+\.\d+$" , language_tool_version )
112- and language_tool_version < "6.6"
113+ and Version ( language_tool_version ) < Version ( "6.6" )
113114 )
114115 or (
115116 re .match (r"^\d{8}$" , language_tool_version )
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ urls = { Repository = "https://github.com/jxmorris12/language_tool_python.git" }
3030dependencies = [
3131 " requests" ,
3232 " tqdm" ,
33+ " packaging" ,
3334 " psutil" ,
3435 " toml"
3536]
@@ -81,4 +82,4 @@ warn_unreachable = true
8182no_implicit_optional = true
8283show_error_codes = true
8384pretty = true
84- disable_error_code = [" import-untyped" ]
85+ disable_error_code = [" import-not-found " , " import- untyped" ]
You can’t perform that action at this time.
0 commit comments