def prereleases(self):
        # type: () -> Optional[bool]
        """
        Returns whether or not pre-releases as a whole are allowed by this
        specifier.
        """

        Returns whether or not pre-releases as a whole are allowed by this
        specifier.
        
product/gradle-plugin/src/main/python/pip/_vendor/packaging/specifiers.py