GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||
GeezerVison is showing github.com — Add unasync: remove feature by spyoungtech · Pull Request #75 · python-trio/unasync ConversationAddresses: #67 Adds unasync: remove feature.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Boo. It also looks like some fixes would be needed to support this feature in Python<3.8 Also worth mentioning |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ebc1925 to
c38dbf9
Compare
There was an error while loading. Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@ ## master #75 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 2 2 Lines 93 108 +15 Branches 26 30 +4 ========================================= + Hits 93 108 +15
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Didn't take too much time to see why travis builds are failing, but I think this could use a review before I do much more with it :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! I need to look into this more but am currently on holidays. Please ping me in two weeks if you haven't heard from me. But yes I do intend to switch to GitHub Actions and drop support for Python 3.6. Also, why do you only activate the remove feature starting with Python 3.8? I believe tokenize_rt supports Python 3.7. That way we could convert all our code to tokenize_rt first, then support the remove feature without parsing every file twice. All of this is more than you signed up for: I'm not asking you to do it, I'm just mentioning the prerequisites here for the sake of completeness. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@spyoungtech OK the master branch has all prerequisites now (Python 3.7+ with
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Hi @pquentin sorry for the late response. Thank you for the update and helping get those checks fixed.
One of the issues I ran into is that, in versions of Python less than 3.8, it seems [some/all?] That was the reason for the 3.8 version check. I'd be happy to proceed on helping with the remaining tasks, but I'm not 100% sure I can resolve the version compatibility issue for Python3.7 with the current implementation without a great deal of effort (and significantly more complex code). Another thought would be to replace the current approach with a simpler one, like what you suggested in #67 with a unasync equivalent of something like I'm happy to proceed either way (applying changes you suggest, but keeping 3.8 version check for this feature) or implementing the feature as an |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Oh, that makes sense. In that case I think it's fine to make that feature 3.8+ only. We should make sure to raise on Python 3.7 though (and test it). And in 11 months we can drop 3.7! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just wanted to chime in and say I haven't forgotten about this. It'll probably be a couple more weeks before I can get around to this (work is busy and I'm about to have a major surgery from which I will need to recover) -- but I will get around to it :-) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1de6922 to
4d6f917
Compare
|
Ok, so it's been almost a year on this (sorry about that) but I'm back on this now. I've incorporated the requested changes into the code. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
welp. All checks were passing except the formatting. But applying the formatting breaks the removal tests because the resulting file after removals are processed is not black-compliant. Bit of a chicken-egg problem. For now, I think I'll just set For whatever reason it also seems to have formatted another file I didn't even touch... |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Welp. Now it looks like I'll come back to this later. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4908de3 to
42416cf
Compare
42416cf to
14b1e32
Compare
2c92ed6 to
415991b
Compare
There was an error while loading. Please reload this page.
|
@CoolCat467 thanks for trying to fix the merge conflicts. I ended up redoing the merge myself to fix the conflicts while (I hope) keeping the correct changes. If you're looking for your changes I force-pushed over, they can be accessed here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.