def closest_hexameter_patterns(self, scansion: str) -> List[str]:
        """
        Find the closest group of matching valid hexameter patterns.

        :return: list of the closest valid hexameter patterns; only candidates with a matching
        length/number of syllables are considered.

        >>> print(MetricalValidator().closest_hexameter_patterns('-UUUUU-----UU--'))
        ['-UU-UU-----UU--']
        """
        return self._closest_patterns(self.VALID_HEXAMETERS, scansion)
def closest_hexameter_patterns ( self , scansion : str ) -> List [ str ] : return self . _closest_patterns ( self . VALID_HEXAMETERS , scansion )
Find the closest group of matching valid hexameter patterns.

        :return: list of the closest valid hexameter patterns; only candidates with a matching
        length/number of syllables are considered.

        >>> print(MetricalValidator().closest_hexameter_patterns('-UUUUU-----UU--'))
        ['-UU-UU-----UU--']