◐ Shell
reader mode source ↗
Skip to content

gh-105578: Raise DeprecationWarning on typing.AnyStr usage#150190

Open
sobolevn wants to merge 2 commits into
python:mainfrom
sobolevn:issue-105578
Open

gh-105578: Raise DeprecationWarning on typing.AnyStr usage#150190
sobolevn wants to merge 2 commits into
python:mainfrom
sobolevn:issue-105578

Conversation

@sobolevn

@sobolevn sobolevn commented May 21, 2026

Copy link
Copy Markdown
Member

@read-the-docs-community

read-the-docs-community Bot commented May 21, 2026

Copy link
Copy Markdown

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hide comment

Thanks! Wow, that came around quickly.

I had to think this through again, but I think this is correct: this is a deprecation for Python 3.16, which will become stable in autumn 2027, around the same time that Python 3.11 goes end-of-life. That means that the deprecation warnings will start to be emitted at basically the same time that the lowest non-EOL Python version is Python 3.12 -- and Python 3.12 is the first version in which users can use PEP-695 syntax

@AlexWaygood

Copy link
Copy Markdown
Member

the test failures from the deprecation warnings in setuptools in https://github.com/python/cpython/actions/runs/26230364757/job/77188896358?pr=150190 do seem a bit concerning. Do we need to update setuptools before landing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants