Skip to content

Commit faebcff

Browse files
committed
Silencing ridiculous mypy complaints in errtokenizer
1 parent dc4527b commit faebcff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/reynir_correct/errtokenizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def word(
372372

373373
def __repr__(self) -> str:
374374
return "<CorrectToken(kind: {0}, txt: '{1}', val: {2}, original: '{3}')>".format(
375-
TOK.descr[self.kind], self.txt, self.val, self.original
375+
TOK.descr[self.kind], self.txt, self.val, self.original # type: ignore
376376
)
377377

378378
__str__ = __repr__
@@ -383,7 +383,7 @@ def concatenate(self, other: Tok, *, separator: str = "", metadata_from_other: b
383383
self_txt = self.txt or ""
384384
other_txt = other.txt or ""
385385
new_txt = self_txt + separator + other_txt
386-
self_original = self.original or ""
386+
self_original = self.original or "" # type: ignore
387387
other_original = other.original or ""
388388
new_original = self_original + other_original
389389

@@ -433,7 +433,7 @@ def copy(self, other: Union[Tok, Sequence[Tok]], coalesce: bool = False) -> bool
433433
from another CorrectToken instance"""
434434
if isinstance(other, CorrectToken):
435435
self._err = other._err
436-
self.original = other.original
436+
self.original = other.original # type: ignore
437437
if coalesce and other.error_span > 1:
438438
# The original token had an associated error
439439
# spanning more than one token; now we're creating

0 commit comments

Comments
 (0)