Skip to content

Commit bdd66f6

Browse files
committed
Linter fix
1 parent 94e4366 commit bdd66f6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

immudb/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def healthCheck(self):
102102

103103
# Not implemented: connect
104104
def _convertToBytes(self, what):
105-
if(type(what) != bytes):
105+
if (type(what) != bytes):
106106
return bytes(what, encoding='utf-8')
107107
return what
108108

@@ -139,7 +139,7 @@ def logout(self):
139139
def _resetStub(self):
140140
self.headersInterceptors = []
141141
self.clientInterceptors = []
142-
if(self.timeout != None):
142+
if (self.timeout != None):
143143
self.clientInterceptors.append(
144144
grpcutils.timeout_adder_interceptor(self.timeout))
145145
self.__stub = schema_pb2_grpc.ImmuServiceStub(self.channel)
@@ -436,6 +436,7 @@ def safeSet(self, key: bytes, value: bytes): # deprecated
436436

437437
# immudb-py only
438438

439+
439440
def getAllValues(self, keys: list): # immudb-py only
440441
resp = batchGet.call(self.__stub, self.__rs, keys)
441442
return resp

immudb/grpcutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def timeout_adder_interceptor(stubTimeout=None):
3333
def intercept_call(client_call_details, request_iterator, request_streaming,
3434
response_streaming):
3535
timeoutToSet = client_call_details.timeout
36-
if(timeoutToSet == None):
36+
if (timeoutToSet == None):
3737
timeoutToSet = stubTimeout
3838
client_call_details = _ClientCallDetails(
3939
client_call_details.method, timeoutToSet, client_call_details.metadata,

immudb/handler/execAll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def call(service: schema_pb2_grpc.ImmuServiceStub, rs: RootService, ops: list, n
5454
)
5555
)
5656
else:
57-
raise("unknown op for execAll")
57+
raise ("unknown op for execAll")
5858

5959
request = schema_pb2.ExecAllRequest(Operations=request_ops, noWait=noWait)
6060
msg = service.ExecAll(request)

0 commit comments

Comments
 (0)