diff --git a/spacy/pipeline/span_finder.py b/spacy/pipeline/span_finder.py index bd69a4c2a..447f40412 100644 --- a/spacy/pipeline/span_finder.py +++ b/spacy/pipeline/span_finder.py @@ -1,8 +1,7 @@ from functools import partial from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, cast -from thinc.api import (Config, Model, Ops, Optimizer, get_current_ops, - set_dropout_rate) +from thinc.api import Config, Model, Ops, Optimizer, get_current_ops, set_dropout_rate from thinc.types import Floats2d, Ints1d, Ragged from spacy.language import Language diff --git a/spacy/pipeline/spancat.py b/spacy/pipeline/spancat.py index c83b03d38..5ac45e8d3 100644 --- a/spacy/pipeline/spancat.py +++ b/spacy/pipeline/spancat.py @@ -1,11 +1,9 @@ from dataclasses import dataclass from functools import partial -from typing import (Any, Callable, Dict, Iterable, List, Optional, Tuple, - Union, cast) +from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Union, cast import numpy -from thinc.api import (Config, Model, Ops, Optimizer, get_current_ops, - set_dropout_rate) +from thinc.api import Config, Model, Ops, Optimizer, get_current_ops, set_dropout_rate from thinc.types import Floats2d, Ints2d, Ragged from ..compat import Protocol, runtime_checkable