Skip to content

Commit ab68242

Browse files
committed
remove type annotations
1 parent 5ca81fe commit ab68242

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎language_tool_python/server.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import socket
66
import threading
77
import urllib.parse
8-
from typing import List
98
from weakref import WeakValueDictionary
109
from .download_lt import download_lt
1110
from .language_tag import LanguageTag
@@ -34,7 +33,7 @@ class LanguageTool:
3433
_instances = WeakValueDictionary()
3534
_PORT_RE = re.compile(r"(?:https?://.*:|port\s+)(\d+)", re.I)
3635

37-
def __init__(self, language=None, motherTongue=None, remote_server=None, newSpellings: List[str] = None):
36+
def __init__(self, language=None, motherTongue=None, remote_server=None, newSpellings=None):
3837
if newSpellings:
3938
self._register_spellings(newSpellings)
4039
if remote_server is not None:
@@ -127,7 +126,7 @@ def disable_spellchecking(self):
127126
"""Disable spell-checking rules."""
128127
self.disabled_categories.update(self._spell_checking_categories)
129128

130-
def _register_spellings(self, spellings: List[str]):
129+
def _register_spellings(self, spellings):
131130
library_path = get_language_tool_directory()
132131
spelling_file_path = os.path.join(library_path, "org/languagetool/resource/en/hunspell/spelling.txt")
133132
if not os.path.exists(spelling_file_path):

0 commit comments

Comments
 (0)