-
Notifications
You must be signed in to change notification settings - Fork 213
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
Fix Local behaviour with asyncio Task. #478
Conversation
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.
@spanezz That looks like a good port of the test 👍
Thanks @spanezz 👍 The type hints need adjusting to keep mypy happy. (See CI) I had a glance at the different commits, but will try and reason them through this week. |
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.
@spanezz I had a quick look. Both of these make sense. Not sure if I prefer one or the other. Option 1 is less of a change.
Can you fix the CI, and perhaps squash the last two commits together so that option 1 and option 2 are obvious for @andrewgodwin to look at?
I made an attempt. I don't seem to be able to run the CI myself, so hopefully it won't take too many iterations to get right. I'd defer fixing things like |
@spanezz You can run the type checker locally by doing (e.g.) OK, everything passes with 16d4ae2 Option 1. Can I ask you to pull 7b3ce47 Option 2 into a separate PR (after this one, I guess). I think we should go with Option 1 now, and release a v3.8.2 to fix the issue, and then we can consider whether Option 2 is worth adopting for a v3.9 at a more leisurely pace. //cc @andrewgodwin I closed #477 which had the |
Thank you for the pointer! I am uncomfortable running code randomly downloaded off the internet on my devel machine, and I'm unfortunately not equipped with a suitably containerized alternative.
Done (I removed the simplification commit from this PR and opened #481) |
This definitely seems like a pretty clean change and easier to understand than the bigger rewrite, so let's get this in. I removed the python 3.8 tests from main - if you want to rebase on top of that so we get a clean sweep, I'm happy to merge this. |
16d4ae2
to
8f2d5e1
Compare
Thanks, and done! |
Thanks! |
Reproduce issue #473 in asgiref's test suite
Fixes #473