pylint: Enable and fix singleton-comparison warnings

This commit is contained in:
Kamil Śliwak
2021-12-21 15:30:11 +01:00
parent 784ae91b41
commit 5b10ff1216
5 changed files with 6 additions and 7 deletions
+3 -3
View File
@@ -50,7 +50,7 @@ class JsonRpcProcess:
# Note, we should make use of timeout to avoid infinite blocking if nothing is received.
CONTENT_LENGTH_HEADER = "Content-Length: "
CONTENT_TYPE_HEADER = "Content-Type: "
if self.process.stdout == None:
if self.process.stdout is None:
return None
message_size = None
while True:
@@ -84,7 +84,7 @@ class JsonRpcProcess:
return json_object
def send_message(self, method_name: str, params: Optional[dict]) -> None:
if self.process.stdin == None:
if self.process.stdin is None:
return
message = {
'jsonrpc': '2.0',
@@ -246,7 +246,7 @@ class SolidityLSPTestSuite: # {{{
}
}
}
if expose_project_root == False:
if not expose_project_root:
params['rootUri'] = None
lsp.call_method('initialize', params)
lsp.send_notification('initialized')