(self, name: str, version_string: str)
return False
Check if the package name and version matches against a blocklisted
        package version specifier.

        Parameters
        ==========
        name: str
            Package name

        version: str
            Package version

        Returns
        =======
        bool:
            True if it matches, False otherwise.
Check if the package name and version matches against a blocklisted
        package version specifier.
Check if the package name and version matches against a blocklisted package version specifier .
def _check_match(self, name: str, version_string: str) -> bool:
        """
        Check if the package name and version matches against a blocklisted
        package version specifier.

        Parameters
        ==========
        name: str
            Package name

        version: str
            Package version

        Returns
        =======
        bool:
            True if it matches, False otherwise.
        """
        if not name or not version_string:
            return False

        try:
            version = Version(version_string)
        except InvalidVersion:
            logger.debug(f"Package {name}=={version_string} has an invalid version")
            return False
        for requirement in self.blocklist_release_requirements:
            if name != requirement.name:
                continue
            if version in requirement.specifier:
                logger.debug(
                    f"MATCH: Release {name}=={version} matches specifier "
                    f"{requirement.specifier}"
                )
                return True
        return False
def _check_match ( self , name : str , version_string : str ) -> bool : if not name or not version_string : return False try : version = Version ( version_string ) except InvalidVersion : logger . debug ( f"Package {name}=={version_string} has an invalid version" ) return False for requirement in self . blocklist_release_requirements : if name != requirement . name : continue if version in requirement . specifier : logger . debug ( f"MATCH: Release {name}=={version} matches specifier " f"{requirement.specifier}" ) return True return False