Skip to content

Commit 2bb1443

Browse files
committed
fix black errors for examples
1 parent 23cd38d commit 2bb1443

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

examples/oauth/oAuth2_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,4 @@ def random_string(length: int) -> str:
207207

208208

209209
if __name__ == "__main__":
210-
asyncio.run(main())
210+
asyncio.run(main())

examples/reconnection/reconnection_example_async.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
class MyMessageHandler(AMQPMessagingHandler):
23-
2423
def __init__(self):
2524
super().__init__()
2625
self._count = 0
@@ -112,9 +111,7 @@ async def main() -> None:
112111

113112
try:
114113
await publisher.publish(
115-
Message(
116-
body=Converter.string_to_bytes("test")
117-
)
114+
Message(body=Converter.string_to_bytes("test"))
118115
)
119116
except ConnectionClosed:
120117
print("publisher connection closed, retrying...")
@@ -192,4 +189,4 @@ def handle_sigint():
192189

193190

194191
if __name__ == "__main__":
195-
asyncio.run(main())
192+
asyncio.run(main())

examples/streams/example_with_streams_async.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121

2222
class MyMessageHandler(AMQPMessagingHandler):
23-
2423
def __init__(self):
2524
super().__init__()
2625
self._count = 0
@@ -167,4 +166,4 @@ def handle_sigint():
167166

168167

169168
if __name__ == "__main__":
170-
asyncio.run(main())
169+
asyncio.run(main())

examples/tls/tls_example_async.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434

3535
class MyMessageHandler(AMQPMessagingHandler):
36-
3736
def __init__(self):
3837
super().__init__()
3938
self._count = 0
@@ -249,4 +248,4 @@ def handle_sigint():
249248

250249

251250
if __name__ == "__main__":
252-
asyncio.run(main())
251+
asyncio.run(main())

0 commit comments

Comments
 (0)