-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Restore deprecation warnings for imports from collections vs collections.abc #30768
Comments
comment:1
The required change is: diff --git a/src/sage/all.py b/src/sage/all.py
--- a/src/sage/all.py
+++ b/src/sage/all.py
@@ -306,10 +306,6 @@ warnings.filters.remove(('ignore', None, DeprecationWarning, None, 0))
# Ignore all deprecations from IPython etc.
warnings.filterwarnings('ignore', category=DeprecationWarning,
module='.*(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic)')
-# Ignore collections.abc warnings, there are a lot of them but they are
-# harmless.
-warnings.filterwarnings('ignore', category=DeprecationWarning,
- message='.*collections[.]abc.*')
# However, be sure to keep OUR deprecation warnings
warnings.filterwarnings('default', category=DeprecationWarning,
message=r'[\s\S]*See https\?://trac.sagemath.org/[0-9]* for details.') |
Commit: |
comment:2
voila une branche New commits:
|
Branch: u/chapoton/30768 |
comment:3
urllib3 seems to be the main source of problems EDIT: but this seems to comes from urllib3 from inside requests updating requests seem to fix a lot of them requests should be upgraded in #31280 EDIT: updating request apparently fixes all doctests |
Dependencies: #32372 |
comment:4
The update of requests (with unvendored urllib3) is now split out to #32372 |
Changed branch from u/chapoton/30768 to u/mkoeppe/30768 |
comment:6
Rebased on top of #32372 New commits:
|
Author: Frédéric Chapoton |
comment:8
Have you tracked down what versions of urllib3 / requests did the fix? We will need to put corresponding version lower bounds into |
comment:9
According to https://docs.python-requests.org/en/master/community/updates/#id11, |
This comment has been minimized.
This comment has been minimized.
comment:11
Is this ready for review? |
comment:12
yes, but depending on #32372 |
comment:13
now this should be ready to go |
Reviewer: Matthias Koeppe |
Changed branch from u/mkoeppe/30768 to |
Since #28012 we correctly import "collections
abstract base classes" from collections.abc.
This ticket is for the next step: unsilence the
corresponding deprecation warnings.
We postponed doing that since some of our dependencies
had not updated their imports yet.
See #28012 comment:23 for the discussion.
Depends on #32372
Component: refactoring
Author: Frédéric Chapoton
Branch/Commit:
edc435e
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/30768
The text was updated successfully, but these errors were encountered: