mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 21:30:22 +03:00
Add types to function
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
parent
2a77705b28
commit
3296aab7dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user