You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: language_tool_python/server.py
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,9 @@ class LanguageTool:
207
207
_proxies: dict[str, str] |None
208
208
"""A dictionary of proxies for network requests (used in requests to the server)."""
209
209
210
+
_premium_key: str|None
211
+
"""The premium API key for the LanguageTool API."""
212
+
210
213
def__init__( # noqa: PLR0913 # Too many arguments, but they are all necessary for configuring the server. Maybe refactor in a future breaking release to use a configuration object instead of individual parameters.
211
214
self,
212
215
language: str|None=None,
@@ -285,6 +288,7 @@ def __init__( # noqa: PLR0913 # Too many arguments, but they are all necessary
285
288
self._enabled_rules_only=False
286
289
self._preferred_variants=set()
287
290
self._picky=False
291
+
self._premium_key=None
288
292
289
293
def__enter__(self) ->LanguageTool:
290
294
"""Enter the runtime context related to this object.
0 commit comments