Skip to content

Conversation

@cjwatson
Copy link
Contributor

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`.
@github-actions

This comment has been minimized.

Copy link
Collaborator

@srittausrittau left a comment

Choose a reason for hiding this comment

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

Thanks!

@github-actions
Copy link
Contributor

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

@srittausrittau merged commit 8ebf8af into python:mainFeb 28, 2025
55 checks passed
@cjwatsoncjwatson deleted the pathlib-glob-py313 branch February 28, 2025 11:22
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
Since python/cpython#117589 (at least), `Path.glob` and `Path.rglob` return an `Iterator` rather than a `Generator`.
Sign up for freeto 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

@cjwatson@srittau