Skip to content

Commit 1b2d974

Browse files
committed
Fix typo
1 parent ba5a1c9 commit 1b2d974

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gatenlp/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def annslist(self, annspec, single_set=False):
510510
"""
511511
tmp = list(self.yield_anns(annspec, single_set=single_set))
512512
# sort by start offset and annotation id
513-
tmp.sort(key=lambda ann: (ann.start(), ann.id))
513+
tmp.sort(key=lambda ann: (ann.start, ann.id))
514514
return tmp
515515

516516

0 commit comments

Comments
 (0)