Skip to content

Commit

Permalink
mtf2json: added 'type: ignore' comment for mixed_decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
juk0de committed Jul 19, 2024
1 parent 1c62ec6 commit 397f17c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mtf2json/mtf2json.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class ConversionError(Exception):


def mixed_decoder(error: UnicodeError) -> Tuple[str, int]:
bs: bytes = error.object[error.start: error.end]
return bs.decode("cp1252"), error.start + 1
bs: bytes = error.object[error.start: error.end] # type: ignore[attr-defined]
return bs.decode("cp1252"), error.start + 1 # type: ignore[attr-defined]


codecs.register_error("mixed", mixed_decoder)
Expand Down

0 comments on commit 397f17c

Please sign in to comment.