Skip to content

Commit fe34bcc

Browse files
Update examples to use asyncio event loop
The user had tried to instantiate the client outside the asyncio event loop, but it must be created within the loop to handle asynchronous calls correctly. This change updates the examples to use async functions and runs them within an asyncio event loop. Signed-off-by: Daniel Zullo <[email protected]>
1 parent b9d9985 commit fe34bcc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ disable = [
145145
"unsubscriptable-object",
146146
# Checked by mypy
147147
"no-member",
148+
"no-name-in-module",
148149
# Checked by flake8
149150
"f-string-without-interpolation",
150151
"line-too-long",

0 commit comments

Comments
 (0)