Skip to content

stdlib: Apply some simple deprecations - #11044

Merged
srittau merged 10 commits into
python:mainfrom
JelleZijlstra:deprecations2
Nov 23, 2023
Merged

srittau merged 10 commits into
python:mainfrom
JelleZijlstra:deprecations2

Conversation

@JelleZijlstra

Copy link
Copy Markdown
Member

Split out from #11009: only deprecations that shouldn't crash pytype or stubtest.

@github-actions

This comment has been minimized.

@srittau

srittau commented Nov 21, 2023

Copy link
Copy Markdown
Collaborator

It seems xml.etree.cElementTree.Element.__bool__ (i.e. the C version) was only added in Python 3.12, while xml.etree.ElementTree.Element.__bool__ (the Python version) was always(tm) present. This confuses stubtest. Maybe split this out into a separate PR as well, as it seems to be a bit complicated?

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau
srittau merged commit c2c8d7c into python:main Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants