-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
Lines 173 to 180 in da9366d
| async def find_first_release_with_py_typed(pypi_info: PypiInfo, *, session: aiohttp.ClientSession) -> PypiReleaseDownload | None: | |
| release_iter = pypi_info.releases_in_descending_order() | |
| # If the latest release is not py.typed, assume none are. | |
| if not (await release_contains_py_typed(release := next(release_iter), session=session)): | |
| return None | |
| first_release_with_py_typed: PypiReleaseDownload | None = None | |
| while await release_contains_py_typed(release := next(release_iter), session=session): |
This function returns None if the latest release has py.typed and other releases don't. This is because the first next(release_iter) consumes the first release and essentially hides it from the rest of this function.
Broken in #9754
Metadata
Metadata
Assignees
Labels
No labels