Skip to content

Commit 67422db

Browse files
committed
Fix formatting
1 parent 061bf86 commit 67422db

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

betterproto/tests/inputs/repeated/test_repeated.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,14 @@
1313

1414

1515
class ExampleService:
16-
async def DoThing(
17-
self, stream: "grpclib.server.Stream[Test, Test]"
18-
):
16+
async def DoThing(self, stream: "grpclib.server.Stream[Test, Test]"):
1917
request = await stream.recv_message()
2018
await stream.send_message(request)
2119

2220
def __mapping__(self) -> Dict[str, grpclib.const.Handler]:
2321
return {
2422
"/repeated.ExampleService/DoThing": grpclib.const.Handler(
25-
self.DoThing,
26-
grpclib.const.Cardinality.UNARY_UNARY,
27-
Test,
28-
Test,
23+
self.DoThing, grpclib.const.Cardinality.UNARY_UNARY, Test, Test,
2924
),
3025
}
3126

@@ -34,6 +29,6 @@ def __mapping__(self) -> Dict[str, grpclib.const.Handler]:
3429
async def test_sets_serialized_on_wire() -> None:
3530
async with ChannelFor([ExampleService()]) as channel:
3631
stub = ExampleServiceStub(channel)
37-
response = await stub.do_thing(names=['a', 'b', 'c'])
32+
response = await stub.do_thing(names=["a", "b", "c"])
3833
assert betterproto.serialized_on_wire(response)
39-
assert response.names == ['a', 'b', 'c']
34+
assert response.names == ["a", "b", "c"]

0 commit comments

Comments
 (0)