Skip to content

Add Python 3.15 path HTTP and importlib updates#15737

Open
JelleZijlstra wants to merge 5 commits intopython:mainfrom
JelleZijlstra:codex/python315-paths
Open

Add Python 3.15 path HTTP and importlib updates#15737
JelleZijlstra wants to merge 5 commits intopython:mainfrom
JelleZijlstra:codex/python315-paths

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

Summary

Add Python 3.15 stdlib updates for path helpers, HTTP helpers, importlib, inspect, pydoc, pathlib, glob, and zipimport.

Relevant report entries

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@JelleZijlstra JelleZijlstra marked this pull request as ready for review May 9, 2026 03:19
Comment thread stdlib/http/server.pyi Outdated
if sys.version_info >= (3, 13):
if sys.version_info >= (3, 15):
pass
elif sys.version_info >= (3, 13):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

same

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Actually @srittau do you have strong opinions on how cases like this should be formatted? We have one set of slots for 3.10/3.11, another for 3.12, yet another for 3.13/3.14, and then no slots in 3.15. We could instead wrap up the whole thing in an if sys.version_info < (3, 15):, but that means the rest gets indented more.

def as_uri(self) -> str: ...
def is_absolute(self) -> bool: ...
if sys.version_info >= (3, 13):
if sys.version_info >= (3, 15):
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is sort of similar. The method has been there since the beginning, deprecated since 3.13, gone in 3.15. In this case we shouldn't unconditionally mark it as deprecated, because the replacement (os.path.isreserved) is also new in 3.13.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 9, 2026

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/computation/ops.py:328: error: Need type annotation for "_binary_ops_dict" (hint: "_binary_ops_dict: dict[<type>, <type>] = ...")  [var-annotated]

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.

1 participant