@@ -209,7 +209,7 @@ def get_language_tool_download_path() -> Path:
209209 "Replace its usage by an inline alternative."
210210 ),
211211 stacklevel = 2 ,
212- ) # type: ignore[untyped-decorator, unused-ignore]
212+ )
213213def find_existing_language_tool_downloads (download_folder : Path ) -> list [Path ]:
214214 """Find existing LanguageTool downloads in the specified folder.
215215
@@ -230,7 +230,7 @@ def find_existing_language_tool_downloads(download_folder: Path) -> list[Path]:
230230@deprecated (
231231 "This function is no longer used internally and will be removed in 4.0." ,
232232 stacklevel = 2 ,
233- ) # type: ignore[untyped-decorator, unused-ignore]
233+ )
234234def _extract_version (path : Path ) -> version .Version :
235235 """Extract the version number from a LanguageTool directory path.
236236
@@ -265,7 +265,7 @@ def _extract_version(path: Path) -> version.Version:
265265 "get_latest_installed_version."
266266 ),
267267 stacklevel = 2 ,
268- ) # type: ignore[untyped-decorator, unused-ignore]
268+ )
269269def get_language_tool_directory () -> Path :
270270 """Get the directory path of the LanguageTool installation.
271271
@@ -307,7 +307,7 @@ def get_language_tool_directory() -> Path:
307307 "Use instead language_tool_python.download_lt.LocalLanguageTool.get_server_cmd."
308308 ),
309309 stacklevel = 2 ,
310- ) # type: ignore[untyped-decorator, unused-ignore]
310+ )
311311def get_server_cmd (
312312 port : int | None = None ,
313313 config : LanguageToolConfig | None = None ,
@@ -350,7 +350,7 @@ def get_server_cmd(
350350@deprecated (
351351 "This function is no longer used internally and will be removed in 4.0." ,
352352 stacklevel = 2 ,
353- ) # type: ignore[untyped-decorator, unused-ignore]
353+ )
354354def get_jar_info () -> tuple [Path , Path ]:
355355 """Retrieve the path to the Java executable and the LanguageTool JAR file.
356356
@@ -458,7 +458,7 @@ def __bool__(self) -> bool:
458458@deprecated (
459459 "This protocol is no longer used internally and will be removed in 4.0." ,
460460 stacklevel = 2 ,
461- ) # type: ignore[untyped-decorator, unused-ignore]
461+ )
462462@runtime_checkable
463463class SupportsInt (Protocol ):
464464 """Protocol for types that can be converted to an integer value."""
@@ -471,7 +471,7 @@ def __int__(self) -> int:
471471@deprecated (
472472 "This protocol is no longer used internally and will be removed in 4.0." ,
473473 stacklevel = 2 ,
474- ) # type: ignore[untyped-decorator, unused-ignore]
474+ )
475475@runtime_checkable
476476class SupportsFloat (Protocol ):
477477 """Protocol for types that can be converted to a float value."""
0 commit comments