Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
tabergma committed Dec 16, 2019
1 parent e1eade1 commit e4328b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rasa/nlu/tokenizers/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get(self, prop: Text, default: Optional[Any] = None) -> Any:

def __eq__(self, other) -> bool:
if not isinstance(other, Token):
return NotImplemented
return False
return (self.offset, self.end, self.text, self.lemma) == (
other.offset,
other.end,
Expand All @@ -40,7 +40,7 @@ def __eq__(self, other) -> bool:

def __lt__(self, other) -> bool:
if not isinstance(other, Token):
return NotImplemented
return False
return (self.offset, self.end, self.text, self.lemma) < (
other.offset,
other.end,
Expand Down

0 comments on commit e4328b8

Please sign in to comment.