diff --git a/spacy/cli/debug_data.py b/spacy/cli/debug_data.py index b9831fe0c..ab7c20d48 100644 --- a/spacy/cli/debug_data.py +++ b/spacy/cli/debug_data.py @@ -699,9 +699,7 @@ def _get_examples_without_label(data: Sequence[Example], label: str) -> int: return count -def _get_labels_from_model( - nlp: Language, factory_name: str -) -> Set[str]: +def _get_labels_from_model(nlp: Language, factory_name: str) -> Set[str]: pipe_names = [ pipe_name for pipe_name in nlp.pipe_names @@ -714,9 +712,7 @@ def _get_labels_from_model( return labels -def _get_labels_from_spancat( - nlp: Language -) -> Dict[str, Set[str]]: +def _get_labels_from_spancat(nlp: Language) -> Dict[str, Set[str]]: pipe_names = [ pipe_name for pipe_name in nlp.pipe_names diff --git a/spacy/tests/pipeline/test_spancat.py b/spacy/tests/pipeline/test_spancat.py index 39d2e97da..8060bc621 100644 --- a/spacy/tests/pipeline/test_spancat.py +++ b/spacy/tests/pipeline/test_spancat.py @@ -79,7 +79,8 @@ def test_explicit_labels(): nlp.initialize() assert spancat.labels == ("PERSON", "LOC") -#TODO figure out why this is flaky + +# TODO figure out why this is flaky @pytest.mark.skip(reason="Test is unreliable for unknown reason") def test_doc_gc(): # If the Doc object is garbage collected, the spans won't be functional afterwards