Fix flake8, black and pylint errors in code
Change-Id: Ic03f4d31e2ba9801be20d3679bd5749948cab39d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_ee/frontend_grpc.py b/osm_ee/frontend_grpc.py
index b2b95d3..5bb0380 100644
--- a/osm_ee/frontend_grpc.py
+++ b/osm_ee/frontend_grpc.py
@@ -6,6 +6,7 @@
import grpclib.const
import grpclib.client
+
if typing.TYPE_CHECKING:
import grpclib.server
@@ -15,22 +16,28 @@
class FrontendExecutorBase(abc.ABC):
@abc.abstractmethod
- async def RunPrimitive(self, stream: 'grpclib.server.Stream[osm_ee.frontend_pb2.PrimitiveRequest, osm_ee.frontend_pb2.PrimitiveReply]') -> None:
+ async def RunPrimitive(
+ self,
+ stream: "grpclib.server.Stream[osm_ee.frontend_pb2.PrimitiveRequest, osm_ee.frontend_pb2.PrimitiveReply]",
+ ) -> None:
pass
@abc.abstractmethod
- async def GetSshKey(self, stream: 'grpclib.server.Stream[osm_ee.frontend_pb2.SshKeyRequest, osm_ee.frontend_pb2.SshKeyReply]') -> None:
+ async def GetSshKey(
+ self,
+ stream: "grpclib.server.Stream[osm_ee.frontend_pb2.SshKeyRequest, osm_ee.frontend_pb2.SshKeyReply]",
+ ) -> None:
pass
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
return {
- '/osm_ee.FrontendExecutor/RunPrimitive': grpclib.const.Handler(
+ "/osm_ee.FrontendExecutor/RunPrimitive": grpclib.const.Handler(
self.RunPrimitive,
grpclib.const.Cardinality.UNARY_STREAM,
osm_ee.frontend_pb2.PrimitiveRequest,
osm_ee.frontend_pb2.PrimitiveReply,
),
- '/osm_ee.FrontendExecutor/GetSshKey': grpclib.const.Handler(
+ "/osm_ee.FrontendExecutor/GetSshKey": grpclib.const.Handler(
self.GetSshKey,
grpclib.const.Cardinality.UNARY_UNARY,
osm_ee.frontend_pb2.SshKeyRequest,
@@ -44,13 +51,13 @@
def __init__(self, channel: grpclib.client.Channel) -> None:
self.RunPrimitive = grpclib.client.UnaryStreamMethod(
channel,
- '/osm_ee.FrontendExecutor/RunPrimitive',
+ "/osm_ee.FrontendExecutor/RunPrimitive",
osm_ee.frontend_pb2.PrimitiveRequest,
osm_ee.frontend_pb2.PrimitiveReply,
)
self.GetSshKey = grpclib.client.UnaryUnaryMethod(
channel,
- '/osm_ee.FrontendExecutor/GetSshKey',
+ "/osm_ee.FrontendExecutor/GetSshKey",
osm_ee.frontend_pb2.SshKeyRequest,
osm_ee.frontend_pb2.SshKeyReply,
)