gh-105578: Raise `DeprecationWarning` on `typing.AnyStr` usage by sobolevn · Pull Request #150190 · python/cpython · GitHub

github.com

Tin mới

sobolevn:issue-105578

read-the-docs-community

There was an error while loading. Please reload this page.

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

Discourage and deprecate typing.AnyStr #105578

awaiting core review

awaiting core review

gh-105578: Raise `DeprecationWarning` on `typing.AnyStr` usage

View reviewed changes

Learn more about hiding disruptive comments

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

Doc/library/typing.rst

View reviewed changes

https://github.com/python/cpython/actions/runs/26230364757/job/77188896358?pr=150190

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 landi

Remove typing.AnyStr usage pypa/setuptools#5232

github-actions Bot commented Aug 19, 2026

github-actions Bot commented Aug 19, 2026

This PR is stale because it has been open for 90 days with no activity.