Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
johann-petrak committed Apr 28, 2023
1 parent ba5a1c9 commit 1b2d974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatenlp/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def annslist(self, annspec, single_set=False):
"""
tmp = list(self.yield_anns(annspec, single_set=single_set))
# sort by start offset and annotation id
tmp.sort(key=lambda ann: (ann.start(), ann.id))
tmp.sort(key=lambda ann: (ann.start, ann.id))
return tmp


Expand Down

0 comments on commit 1b2d974

Please sign in to comment.