Skip to content

Commit

Permalink
type comment update
Browse files Browse the repository at this point in the history
  • Loading branch information
dndrsn committed Dec 30, 2022
1 parent 2be661f commit ad8dbe1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

MYPY = False
if MYPY:
from typing import List, Union
from typing import List, Optional, Union


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

def get_stdin_filename(self) -> str | None:
def get_stdin_filename(self):
# type: () -> Optional[str]
filename = self.view.file_name()
if filename is None:
view_selectors = set(self.view.scope_name(0).split(' '))
Expand Down

0 comments on commit ad8dbe1

Please sign in to comment.