From 397f17c45bcd9a7888f73765148c08523a0eb206 Mon Sep 17 00:00:00 2001 From: juk0de <5322305+juk0de@users.noreply.github.com> Date: Fri, 19 Jul 2024 08:58:35 +0200 Subject: [PATCH] mtf2json: added 'type: ignore' comment for mixed_decoder --- mtf2json/mtf2json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mtf2json/mtf2json.py b/mtf2json/mtf2json.py index ec9c07f..8d7fbd9 100755 --- a/mtf2json/mtf2json.py +++ b/mtf2json/mtf2json.py @@ -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)