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

Weaken return type of Path.{glob,rglob} in 3.13 #13223

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

cjwatson
Copy link
Contributor

@cjwatson cjwatson commented Dec 8, 2024

Since python/cpython#117589 (at least), Path.glob and Path.rglob return an Iterator rather than a Generator.

Since python/cpython#117589 (at least),
`Path.glob` and `Path.rglob` return an `Iterator` rather than a
`Generator`.

This comment has been minimized.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

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

@srittau srittau merged commit 8ebf8af into python:main Feb 28, 2025
55 checks passed
@cjwatson cjwatson deleted the pathlib-glob-py313 branch February 28, 2025 11:22
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