montreal_forced_aligner/models.py
def valid_extension(cls, filename: str) -> bool:
        """
        Check whether a file has a valid extension for the given model archive

        Parameters
        ----------
        filename: str
            File name to check

        Returns
        -------
        bool
            True if the extension matches the models allowed extensions
        """
        if os.path.splitext(filename)[1] in cls.extensions:
            return True
        return False

        Check whether a file has a valid extension for the given model archive

        Parameters
        ----------
        filename: str
            File name to check

        Returns
        -------
        bool
            True if the extension matches the models allowed extensions
        
Check whether a file has a valid extension for the given model archive
Parameters

str
File name to check

Returns

bool
True if the extension matches the models allowed extensions
Check whether a file has a valid extension for the given model archive Parameters str File name to check Returns bool True if the extension matches the models allowed extensions
def valid_extension(cls, filename: str) -> bool:
        if os.path.splitext(filename)[1] in cls.extensions:
            return True
        return False
def valid_extension ( cls , filename : str ) -> bool : if os . path . splitext ( filename ) [ 1 ] in cls . extensions : return True return False
Check whether a file has a valid extension for the given model archive
Parameters
Check whether a file has a valid extension for the given model archive Parameters
"""
        Check whether a file has a valid extension for the given model archive

        Parameters
        ----------
        filename: str
            File name to check

        Returns
        -------
        bool
            True if the extension matches the models allowed extensions
        """
cls
filename
str