From 3296aab7dd61a234ffdbb7ddfcfe8f52446bec65 Mon Sep 17 00:00:00 2001 From: Edward <43848523+thomashacker@users.noreply.github.com> Date: Fri, 2 Dec 2022 12:15:00 +0100 Subject: [PATCH] Add types to function Co-authored-by: Sofie Van Landeghem --- spacy/tokens/underscore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tokens/underscore.py b/spacy/tokens/underscore.py index 9e8f366ac..bde7725f8 100644 --- a/spacy/tokens/underscore.py +++ b/spacy/tokens/underscore.py @@ -123,7 +123,7 @@ class Underscore: return "._.", name, self._start, self._end @staticmethod - def _replace_keys(old_underscore, new_underscore): + def _replace_keys(old_underscore: "Underscore", new_underscore: "Underscore"): """ This function is called by Span when its kb_id or label are re-assigned. It checks if any user_data is stored for this span and replaces the keys