Skip to content

Commit 61029ce

Browse files
readme: add type annotation to connection in consumer example
1 parent 7e468aa commit 61029ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Simple consumer:
8686
# Connecting with the given parameters is also possible.
8787
# aio_pika.connect_robust(host="host", login="login", password="password")
8888
# You can only choose one option to create a connection, url or kw-based params.
89-
connection = await aio_pika.connect_robust(
89+
connection: aio_pika.RobustConnection = await aio_pika.connect_robust(
9090
"amqp://guest:[email protected]/", loop=loop
9191
)
9292

0 commit comments

Comments
 (0)