Skip to content

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

gh-105578: Raise DeprecationWarning on typing.AnyStr usage

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

Triggered via pull request October 28, 2026 11:54
Status Failure
Total duration 42m 35s
Artifacts 4

build.yml

on: pull_request
Change detection  /  Create context from changed files
29s
Change detection / Create context from changed files
Matrix: build-ios
Matrix: build-macos
Matrix: build-san
Matrix: Ubuntu SSL tests
Matrix: build-ubuntu
Matrix: build-windows
Matrix: cifuzz
Waiting for pending jobs
Docs  /  Doctest
7m 59s
Docs / Doctest
Docs  /  Check EPUB
2m 37s
Docs / Check EPUB
Check if Autoconf files are up to date
37s
Check if Autoconf files are up to date
Check if generated files are up to date
5m 0s
Check if generated files are up to date
C API Docs  /  Check if all C APIs are documented
13s
C API Docs / Check if all C APIs are documented
Ubuntu (installed)  /  build, install and test
6m 34s
Ubuntu (installed) / build, install and test
Emscripten  /  build and test
13m 38s
Emscripten / build and test
WASI  /  build and test
4m 59s
WASI / build and test
Hypothesis tests on Ubuntu
10m 22s
Hypothesis tests on Ubuntu
Lazy imports enabled  /  Run Tests with lazy_imports=all
8m 27s
Lazy imports enabled / Run Tests with lazy_imports=all
Cross build Linux
3m 24s
Cross build Linux
Matrix: build-android
Docs  /  ...  /  Check for removed HTML IDs
2m 36s
Docs / Check for removed HTML IDs / Check for removed HTML IDs
All required checks pass
4s
All required checks pass
Fit to window
Zoom out
Zoom in

Annotations

13 errors, 4 warnings, and 11 notices
Docs / Check EPUB
Process completed with exit code 1.
Docs / Docs
Process completed with exit code 2.
test_headers_and_trailer (test.test_peg_generator.test_c_parser.TestCParser.test_headers_and_trailer): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_gather_action_ast (test.test_peg_generator.test_c_parser.TestCParser.test_gather_action_ast): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_gather (test.test_peg_generator.test_c_parser.TestCParser.test_gather): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_forced_with_group (test.test_peg_generator.test_c_parser.TestCParser.test_forced_with_group): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_forced (test.test_peg_generator.test_c_parser.TestCParser.test_forced): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_error_in_rules (test.test_peg_generator.test_c_parser.TestCParser.test_error_in_rules): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_cut (test.test_peg_generator.test_c_parser.TestCParser.test_cut): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_c_parser (test.test_peg_generator.test_c_parser.TestCParser.test_c_parser): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_alternative_variable_bindings (test.test_peg_generator.test_c_parser.TestCParser.test_alternative_variable_bindings): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
test_advanced_left_recursive (test.test_peg_generator.test_c_parser.TestCParser.test_advanced_left_recursive): Lib/test/test_peg_generator/test_c_parser.py#L121
DeprecationWarning: 'typing.AnyStr' is deprecated and slated for removal in Python 3.21. Use PEP 695 type parameters with constraints instead
All required checks pass
Process completed with exit code 1.
Hypothesis tests on Ubuntu
No files were found with the provided path: /home/runner/work/cpython/cpython-builddir/.hypothesis/examples/. No artifacts will be uploaded.
macOS / build and test (macos-26-intel)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS (free-threading) / build and test (macos-26)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
macOS / build and test (macos-26)
`$HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set: not checking for outdated dependents or dependents with broken linkage!
Change detection / Create context from changed files
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
C API Docs / Check if all C APIs are documented
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Docs / Check EPUB
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Docs / Docs
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Docs / Check for removed HTML IDs / Check for removed HTML IDs
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
Android (aarch64)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
macOS (free-threading) / build and test (macos-26)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
macOS / build and test (macos-26)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
iOS (free-threading)
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
iOS
Due to capacity constraints, jobs targeting macOS arm64 runners may experience longer queue times.
All required checks pass
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"

Artifacts

Produced during runtime
Name Size Digest
ASan-logs-default
2.49 KB
sha256:71f66ff28b7cb4d9d675f95e59cf5a77be5a3b7d8d48f3ea64cfd5fada6e0335
MSan-logs-default
209 Bytes
sha256:e74e23817eec735b0c186af6f9f69245a08834075a1a1f28b22346ad3c3e310c
UBSan-logs-default
1.5 KB
sha256:92c6da0ad13672e08ae9eb6b0b2d8cc9f715e40d23d932ae3e5c38a0667ab465
html-ids-head.json.gz
132 KB
sha256:2734076093918e3a7049a55ec2c7505567c0da48a4bf7eb61d3d1e172b683825