-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 legacy examples #5625
Remove legacy examples #5625
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5625 +/- ##
=======================================
Coverage 93.32% 93.32%
=======================================
Files 102 102
Lines 30067 30067
Branches 2689 2689
=======================================
Hits 28060 28060
Misses 1831 1831
Partials 176 176
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
This pull request fixes 3 alerts when merging b9b4664 into 4316b5c - view on LGTM.com fixed alerts:
|
@Dreamsorcerer have you checked if there are any equivalent examples elsewhere? Like the new ones in this repo, in the docs, or in https://github.com/aio-libs/aiohttp-demos? |
I didn't really spend any time understanding the code, beyond noticing all the errors that mypy was reporting. I was hoping you might have a better idea why they are under a |
Probably, but I never touched files in the example dirs IIRC. If you want to know more, you'd have to resort to Git archeology. FWIW my only concern is removing app examples that may otherwise be unavailable. Can't mypy just ignore that subdir? |
Unfortunately, that just shows they were considered 'obsolete', but doesn't explain why they were kept in the first place: That was also 5 years ago, so I feel it's unlikely to still be useful now.
Yes, we can do something like that, I'm just not sure if there's any point in keeping around broken code. If they're useful, we should probably fix them, if not, we should remove them. The advantage of Mypy is that it can ensure that the examples are kept in sync with any changes to the codebase, so we don't end up with broken examples like this. |
I mean, if these were obsolete before v1, what are the chances they will work at all in v4? :P |
If the ideas they demonstrate aren't easily discoverable, I suppose they need to be fixed. Could you explore this more? |
This pull request fixes 2 alerts when merging 470ce82 into ae23fd6 - view on LGTM.com fixed alerts:
|
Agree, legacy examples are broken; they use dropped API |
This pull request fixes 2 alerts when merging 4220fab into abdb142 - view on LGTM.com fixed alerts:
|
This pull request fixes 2 alerts when merging 9dbdb52 into 7b5611c - view on LGTM.com fixed alerts:
|
Backport to 3.8: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply b8da14c on top of patchback/backports/3.8/b8da14cb3bcad6d3a2990a518102e1175df824f8/pr-5625 Backporting merged PR #5625 into master
🤖 @patchback |
* Remove legacy examples. * Add changes file. * Revert exclude. Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
💔 Backport was not successfulThe PR was attempted backported to the following branches:
|
Does legacy mean these can be removed?
They appear to no longer work and are causing a blocker to upgrading Mypy.