From 5c6431606a5c125fdc40ce75fa526ed274094192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Rami=CC=81rez=20Mondrago=CC=81n?= Date: Wed, 5 Jul 2023 10:57:23 -0600 Subject: [PATCH] Address mypy errors --- singer_sdk/io_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/singer_sdk/io_base.py b/singer_sdk/io_base.py index 8fa85b10a..07da6e63e 100644 --- a/singer_sdk/io_base.py +++ b/singer_sdk/io_base.py @@ -63,7 +63,10 @@ def deserialize_json(self, line: str) -> dict: json.decoder.JSONDecodeError: raised if any lines are not valid json """ try: - return json.loads(line, parse_float=decimal.Decimal) + return json.loads( # type: ignore[no-any-return] + line, + parse_float=decimal.Decimal, + ) except json.decoder.JSONDecodeError as exc: logger.error("Unable to parse:\n%s", line, exc_info=exc) raise