Skip to content

python_stdlib: update for 3.14#18014

Merged
dylwil3 merged 1 commit intoastral-sh:mainfrom
Rogdham:stdlib3.14
May 11, 2025
Merged

python_stdlib: update for 3.14#18014
dylwil3 merged 1 commit intoastral-sh:mainfrom
Rogdham:stdlib3.14

Conversation

@Rogdham
Copy link
Contributor

@Rogdham Rogdham commented May 11, 2025

Summary

Added version 3.14 to the script generating the known_stdlib.rs file.

Rebuilt the known stdlibs with latest version (2025.5.10) of stdlibs Python lib (which added support for 3.14.0b1).

Note: Python 3.14 is now in feature freeze so the modules in stdlib should be stable.

See also: #15506

Test Plan

The following command has been run. Using for tests the compression module which been introduced with Python 3.14.

ruff check --no-cache --select I001 --target-version py314 --fix

With ruff 0.11.9:

import base64
import datetime

import compression

print(base64, compression, datetime)

With this PR:

import base64
import compression
import datetime   

print(base64, compression, datetime)

@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

ℹ️ ecosystem check encountered format errors. (no format changes; 1 project error)

openai/openai-cookbook (error)

warning: Detected debug build without --no-cache.
error: Failed to read examples/gpt4-1_prompting_guide.ipynb: Expected a Jupyter Notebook, which must be internally stored as JSON, but this file isn't valid JSON: expected `,` or `]` at line 580 column 29

Formatter (preview)

ℹ️ ecosystem check encountered format errors. (no format changes; 1 project error)

openai/openai-cookbook (error)

ruff format --preview

warning: Detected debug build without --no-cache.
error: Failed to read examples/gpt4-1_prompting_guide.ipynb: Expected a Jupyter Notebook, which must be internally stored as JSON, but this file isn't valid JSON: expected `,` or `]` at line 580 column 29

@Rogdham Rogdham mentioned this pull request May 11, 2025
1 task
Copy link
Collaborator

@dylwil3 dylwil3 left a comment

Choose a reason for hiding this comment

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

Fantastic, thank you!

@dylwil3 dylwil3 merged commit bc7b303 into astral-sh:main May 11, 2025
34 checks passed
@dylwil3 dylwil3 added python314 Related to Python 3.14 internal An internal refactor or improvement and removed internal An internal refactor or improvement labels May 11, 2025
@Rogdham Rogdham deleted the stdlib3.14 branch May 11, 2025 17:08
dcreager added a commit that referenced this pull request May 12, 2025
* main:
  disable jemalloc on android (#18033)
  [ty] Fix incorrect type of `src.root` in documentation (#18040)
  [ty] Refine message for why a rule is enabled (#18038)
  [ty] Remove brackets around option names (#18037)
  Update pre-commit dependencies (#18025)
  Update docker/build-push-action action to v6.16.0 (#18030)
  Update docker/login-action action to v3.4.0 (#18031)
  Update taiki-e/install-action digest to 83254c5 (#18022)
  Update cargo-bins/cargo-binstall action to v1.12.4 (#18023)
  Update Rust crate ctrlc to v3.4.7 (#18027)
  Update Rust crate clap to v4.5.38 (#18026)
  Update Rust crate jiff to v0.2.13 (#18029)
  Update Rust crate getrandom to v0.3.3 (#18028)
  Update dependency ruff to v0.11.9 (#18024)
  [`pylint`] add fix safety section (`PLW1514`) (#17932)
  python_stdlib: update for 3.14 (#18014)
  [`ruff`] add fix safety section (`RUF033`) (#17760)
  [`pylint`] add fix safety section (`PLC0414`) (#17802)
Glyphack pushed a commit to Glyphack/ruff that referenced this pull request May 21, 2025
## Summary

Added version 3.14 to the script generating the `known_stdlib.rs` file.

Rebuilt the known stdlibs with latest version (2025.5.10) of [stdlibs
Python lib](https://pypi.org/project/stdlibs/) (which added support for
3.14.0b1).

_Note: Python 3.14 is now in [feature
freeze](https://peps.python.org/pep-0745/) so the modules in stdlib
should be stable._

_See also: #15506_

## Test Plan

The following command has been run. Using for tests the `compression`
module which been introduced with Python 3.14.
```sh
ruff check --no-cache --select I001 --target-version py314 --fix
```

With ruff 0.11.9:
```python
import base64
import datetime

import compression

print(base64, compression, datetime)
```

With this PR:
```python
import base64
import compression
import datetime   

print(base64, compression, datetime)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python314 Related to Python 3.14

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants