Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pathlib to 3.12 #10646

Merged
merged 4 commits into from
Sep 1, 2023
Merged

Update pathlib to 3.12 #10646

merged 4 commits into from
Sep 1, 2023

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Sep 1, 2023

@@ -38,7 +39,11 @@ class PurePath(PathLike[str]):
def suffixes(self) -> list[str]: ...
@property
def stem(self) -> str: ...
def __new__(cls, *args: StrPath) -> Self: ...
if sys.version_info >= (3, 12):
def __new__(cls, *args: StrPath, **kwargs: Unused) -> Self: ...
Copy link
Member Author

Choose a reason for hiding this comment

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

Technically *args are also unused in __new__, but I fear that using Unused here might break *args: StrPath in __init__. So, I went with the safest bet.

@github-actions

This comment has been minimized.

stdlib/pathlib.pyi Outdated Show resolved Hide resolved
stdlib/pathlib.pyi Outdated Show resolved Hide resolved
Co-authored-by: Sebastian Rittau <[email protected]>
@sobolevn
Copy link
Member Author

sobolevn commented Sep 1, 2023

Sunset of 3.7 is very awaited! 🌆

@github-actions
Copy link
Contributor

github-actions bot commented Sep 1, 2023

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

@srittau srittau merged commit e04c440 into main Sep 1, 2023
65 checks passed
@srittau srittau deleted the py312-pathlib branch September 1, 2023 12:54
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.

3 participants