Add types to function

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
This commit is contained in:
Edward 2022-12-02 12:15:00 +01:00 committed by GitHub
parent 2a77705b28
commit 3296aab7dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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