Work around set order in Language.disabled

This commit is contained in:
Ines Montani 2020-08-29 12:58:22 +02:00
parent 66d76f5126
commit 6520d1a1df
1 changed files with 3 additions and 1 deletions

View File

@ -258,7 +258,9 @@ class Language:
RETURNS (List[str]): The disabled components.
"""
return list(self._disabled)
# Make sure the disabled components are returned in the order they
# appear in the pipeline (which isn't guaranteed by the set)
return [name for name, _ in self.components if name in self._disabled]
@property
def factory_names(self) -> List[str]: