def __init__(
        self,
        prefer_binary=False,  # type: bool
        allow_all_prereleases=False,  # type: bool
    ):
        # type: (...) -> None
        """
        :param allow_all_prereleases: Whether to allow all pre-releases.
        """
        self.allow_all_prereleases = allow_all_prereleases
        self.prefer_binary = prefer_binary

        :param allow_all_prereleases: Whether to allow all pre-releases.
        
product/gradle-plugin/src/main/python/pip/_internal/index/package_finder.py