FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Python 3.15 path HTTP and importlib updates by JelleZijlstra · Pull Request #15737 · python/typeshed · GitHub

Repository navigation

Add Python 3.15 path HTTP and importlib updates - #15737

Merged
JelleZijlstra merged 9 commits into
python:mainfrom
JelleZijlstra:codex/python315-paths
May 11, 2026
Merged

JelleZijlstra merged 9 commits into
python:mainfrom
JelleZijlstra:codex/python315-paths

Conversation

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

This comment has been minimized.

This comment has been minimized.

JelleZijlstra marked this pull request as ready for review May 9, 2026 03:19
Comment thread stdlib/http/server.pyi Outdated
Comment thread stdlib/pathlib/__init__.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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I find a double indent slightly more readable as it makes it clear that the following was removed in 3.15, while I find the "empty" branch a bit weird. But I don't really have a strong opinion, so let's use what you prefer.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

All right, I'll change it. Your version will also make the edit easier when we drop support for 3.12.

Comment thread stdlib/pathlib/__init__.pyi Outdated
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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Comment thread stdlib/http/server.pyi Outdated
Comment thread stdlib/pathlib/__init__.pyi Outdated
Comment thread stdlib/pathlib/__init__.pyi Outdated
Comment thread stdlib/genericpath.pyi Outdated
Comment thread stdlib/ntpath.pyi Outdated

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

JelleZijlstra merged commit 4e1948a into python:main May 11, 2026
56 checks passed
JelleZijlstra deleted the codex/python315-paths branch May 11, 2026 15:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL