-
Notifications
You must be signed in to change notification settings - Fork 64
Fix session client for Python versions <= 3.9 #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
93941a2
to
71f5e1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick fix!
41b2347
to
71f5e1e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, shouldn't block merge
src/viam/sessions_client.py
Outdated
|
||
|
||
def loop_kwargs(): | ||
if sys.version_info[:2] <= (3, 9): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just do if sys.version_info <= (3, 9)
Fixes a regression in the session client for Python versions <= 3.9 that stemmed differences in
asyncio
's before and after this version: https://docs.python.org/3/whatsnew/3.10.html#removed. This regression was exposed by our integration tests.Testing:
poetry build