Skip to content

Commit 6defc5c

Browse files
committed
patch one line problem with lambdas
1 parent 4d14f4d commit 6defc5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stanza/models/common/doc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,10 @@ def all_words(self):
747747
words = self._words
748748
empty_words = self._empty_words
749749

750-
all = sorted(words + empty_words, key=lambda x:(x.id,)
751-
if isinstance(x.id, int) else x.id)
750+
all_words = sorted(words + empty_words,
751+
key=lambda x:(x.id,) if isinstance(x.id, int) else x.id)
752752

753-
return all
753+
return all_words
754754

755755
@property
756756
def ents(self):

0 commit comments

Comments
 (0)