mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-15 20:15:57 +00:00
Add type annotations
This commit is contained in:
1 parent
8e8f304377
commit
d1afa040c4
3 files changed
+5
-5
No files matched your search
@@ -4,7 +4,7 @@ This module contains the exceptions raised by the framework.
|
||||
|
||||
|
||||
class SolidLSPException(Exception):
|
||||
def __init__(self, message: str, cause: Exception | None = None):
|
||||
def __init__(self, message: str, cause: Exception | None = None) -> None:
|
||||
"""
|
||||
Initializes the exception with the given message.
|
||||
|
||||
@@ -17,7 +17,7 @@ class SolidLSPException(Exception):
|
||||
self.cause = cause
|
||||
super().__init__(message)
|
||||
|
||||
def is_language_server_terminated(self):
|
||||
def is_language_server_terminated(self) -> bool:
|
||||
"""
|
||||
:return: True if the exception is caused by the language server having terminated as indicated
|
||||
by the causing exception being an instance of LanguageServerTerminatedException.
|
||||
|
||||
Reference in new issue
Block a user