def METHOD_NAME(
    self, after_datetime: Optional[datetime.datetime]
) -> Iterator[ReleaseData]:
    """
    Args:
        after_datetime: if none all releases (except pre-releases) will
        be provided.
    """
    last_release_data = self.get_last_release_data()
    latest_upload_datetime: Optional[datetime.datetime] = None
    if last_release_data and last_release_data.upload_time:
        latest_upload_datetime = datetime.datetime.strptime(
            last_release_data.upload_time, "%Y-%m-%dT%H:%M:%S"
        )
    for release_data in self._releases.values():
        if release_data.upload_time:
            upload_datetime = datetime.datetime.strptime(
                release_data.upload_time, "%Y-%m-%dT%H:%M:%S"
            )
            if latest_upload_datetime:
                # Hide pre-releases.
                if upload_datetime > latest_upload_datetime:
                    continue
            if after_datetime is None or upload_datetime >= after_datetime:
                yield release_data