MCPcopy Index your code
hub / github.com/McCloudS/subgen / is_valid_language

Method is_valid_language

language_code.py:165–166  ·  view source on GitHub ↗
(language: str)

Source from the content-addressed store, hash-verified

163 # is valid language
164 @staticmethod
165 def is_valid_language(language: str):
166 return LanguageCode.from_string(language) is not LanguageCode.NONE
167
168 def to_iso_639_1(self):
169 return self.iso_639_1

Callers 3

should_skip_fileFunction · 0.80
test_valid_isoMethod · 0.80
test_invalidMethod · 0.80

Calls 1

from_stringMethod · 0.80

Tested by 2

test_valid_isoMethod · 0.64
test_invalidMethod · 0.64