We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be661f commit ad8dbe1Copy full SHA for ad8dbe1
linter.py
@@ -22,7 +22,7 @@
22
23
MYPY = False
24
if MYPY:
25
- from typing import List, Union
+ from typing import List, Optional, Union
26
27
28
logger = logging.getLogger('SublimeLinter.plugin.eslint')
@@ -138,7 +138,8 @@ def ensure_plugin_installed(self) -> bool:
138
self.notify_unassign() # Abort linting without popping error dialog
139
raise PermanentError()
140
141
- def get_stdin_filename(self) -> str | None:
+ def get_stdin_filename(self):
142
+ # type: () -> Optional[str]
143
filename = self.view.file_name()
144
if filename is None:
145
view_selectors = set(self.view.scope_name(0).split(' '))
0 commit comments