def _create_language_module(language: str, tasks: Optional[Sequence[Task]] = None ) -> Language: result = Language({}, language) if tasks is not None: result.tasks = tasks return result
def define_language(lang: Language): lang.tasks = [Task('task', None)]