Skip to content

Commit

Permalink
Address mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Jul 5, 2023
1 parent f3fd68f commit 5c64316
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion singer_sdk/io_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5c64316

Please sign in to comment.