bpo-25988: Do not expose abstract collection classes in the collections module. by serhiy-storchaka · Pull Request #10596 · python/cpython · GitHub

github.com

Tin mới

serhiy-storchaka:collections-abc

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

View reviewed changes

Using ABCs from collections instead of collections.abc is deprecated. python-babel/babel#609

Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated html5lib/html5lib-python#405

html5lib/html5lib-python#403

Warning in html5lib's _trie/_base.py seems to have been fixed upstream : html5lib/html5lib-python#403

html5lib/html5lib-python#402

Warning in html5lib's _trie/_base.py seems to have been fixed upstream : html5lib/html5lib-python#403

Add a six.moves for collections and collections.abc in preparation fo… benjaminp/six#241

DeprecationWarning in flask.sessions pallets/flask#3053

Update vendored copy of html5lib for Python 3.8 compatibility pypa/pip#6237

bpo-25988: Do not expose abstract collection classes in the collectio…

Merge branch 'master' into collections-abc

https://github.com/yan12125/cpython/commit/e6641707fb87774bf6359d8a584047cc94cc5b68#diff-c8dee9c3c068ad3447bbf459950a35b5

I gave it a try - the jinja issue is the last blocker. If I use an unreleased commit of jinja [1], tests are green [2].

pallets/jinja@593ee1e

The issue was fixed in 2.10.2 more than a year ago, but this version is not released yet.

https://github.com/pallets/jinja/tags

Seems 2.10.2 is not tagged yet (or it was tagged but later removed): https://github.com/pallets/jinja/tags

pallets/jinja#1069

A new version of Jinja is out - http://jinja.palletsprojects.com/en/2.10.x/changelog/#version-2-10-2. This pull request can go forward now.

https://github.com/yan12125/cpython/commits/collections-abc

Merge branch 'master' into collections-abc

bpo-25988: Do not expose abstract collection classes in the collectio…

Use collections.abc for Python 3.9 compatibility. nose-devs/nose2#456

Use collections.abc for ABC import to fix Python 3.9 compatibility. Netflix/metaflow#33

PR: Add Python 3.9 compatibility for collections.abc module spyder-ide/qtpy#204

Import ABC from collections.abc for Python 3.9 compatibility. anaconda/anaconda-client#533

[SPARK-30205][PYSPARK] Import ABCs from collections.abc to remove deprecation warnings apache/spark#26835

Import ABC from collections.abc for Python 3.9 compatibility. getmoto/moto#2624

fix deprecation warnings for collections.abc (will break in Python 3.9) boto/botocore#1865

][PYSPARK] Import ABCs from collections.abc to remove dep…

Use ABC imports from collections.abc for Python 3.9 compatibility basho/riak-python-client#538

Transition testing framework from nose/chai to pytest arrow-py/arrow#594

Importing ABC directly from collections module will be ImportError in Python 3.9 aws/aws-cli#4853

Fix collections.abc imports for Python 3.9 aws/aws-cli#4860

: Do not expose abstract collection class…