Skip to content
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

Remove direct coroutine call #557

Merged
merged 1 commit into from
Mar 11, 2023
Merged

Conversation

srogatch
Copy link
Contributor

Python 3.11 forbids direct calls to coroutines.

@codecov
Copy link

codecov bot commented Mar 11, 2023

Codecov Report

Merging #557 (ded1d7f) into master (8c98caa) will increase coverage by 0.12%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #557      +/-   ##
==========================================
+ Coverage   75.92%   76.04%   +0.12%     
==========================================
  Files          81       81              
  Lines        7995     7995              
==========================================
+ Hits         6070     6080      +10     
+ Misses       1925     1915      -10     
Impacted Files Coverage Δ
hivemind/dht/node.py 92.18% <ø> (+1.18%) ⬆️

... and 4 files with indirect coverage changes

Copy link
Member

@mryab mryab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @justheuristic do you see any downsides to this? The docs for asyncio.wait_for mention automatic conversion of coroutines to tasks — perhaps it means that this change is safe

Copy link
Member

@borzunov borzunov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

I'll try adding 3.11 to the CI to see if there're other incompatibilities, see #558.

@borzunov borzunov merged commit 351abc5 into learning-at-home:master Mar 11, 2023
mryab pushed a commit that referenced this pull request Mar 31, 2023
Python 3.11 forbids direct calls to coroutines.

(cherry picked from commit 351abc5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants