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 cocotb.coroutine and yield syntax #3509
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3509 +/- ##
==========================================
- Coverage 66.89% 66.53% -0.36%
==========================================
Files 49 49
Lines 8457 8429 -28
Branches 2384 2378 -6
==========================================
- Hits 5657 5608 -49
- Misses 1689 1705 +16
- Partials 1111 1116 +5 ☔ View full report in Codecov by Sentry. |
#3461 will remove the two lines that aren't covered. |
Lines 47 to 48 in 32b8581
I think it's safe to remove the generator support from Lines 288 to 305 in 32b8581
And I think a newsfragment is needed for this as well, similar to #3425 |
41206af
to
3d7a63a
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.
The only thing left is the TypeError
message in Task.__init__()
. Now is a good time to update it but it could be left for later cleanup.
else:
raise TypeError(
f"{inst} isn't a valid coroutine! Did you forget to use the yield keyword?"
)
3d7a63a
to
d4d403f
Compare
d4d403f
to
64f0f43
Compare
Closes #1967.