Skip to content

Commit ad8dbe1

Browse files
committed
type comment update
1 parent 2be661f commit ad8dbe1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

linter.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
MYPY = False
2424
if MYPY:
25-
from typing import List, Union
25+
from typing import List, Optional, Union
2626

2727

2828
logger = logging.getLogger('SublimeLinter.plugin.eslint')
@@ -138,7 +138,8 @@ def ensure_plugin_installed(self) -> bool:
138138
self.notify_unassign() # Abort linting without popping error dialog
139139
raise PermanentError()
140140

141-
def get_stdin_filename(self) -> str | None:
141+
def get_stdin_filename(self):
142+
# type: () -> Optional[str]
142143
filename = self.view.file_name()
143144
if filename is None:
144145
view_selectors = set(self.view.scope_name(0).split(' '))

0 commit comments

Comments
 (0)