pyaspeller/speller.py
def lang(self, language):
        """Set lang"""
        if isinstance(language, str):
            self._lang = [language]
        elif isinstance(language, collections.Iterable):
            self._lang = list(language)

        if any(lang not in self._supported_langs for lang in self._lang):
            raise BadArgumentError("Unsupported language")
def lang(self, language):
        """Set lang"""
        if isinstance(language, str):
            self._lang = [language]
        elif isinstance(language, collections.Iterable):
            self._lang = list(language)

        if any(lang not in self._supported_langs for lang in self._lang):
            raise BadArgumentError("Unsupported language")
def lang ( self , language ) : if isinstance ( language , str ) : self . _lang = [ language ] elif isinstance ( language , collections . Iterable ) : self . _lang = list ( language ) if any ( lang not in self . _supported_langs for lang in self . _lang ) : raise BadArgumentError ( "Unsupported language" )
Set lang
Set lang