From b9e8e9b7354110500a530eb3dc6b98a289970a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Rami=CC=81rez=20Mondrago=CC=81n?= Date: Thu, 11 Aug 2022 13:45:31 -0500 Subject: [PATCH] Remove BaseBatchFileEncoding.parse method --- singer_sdk/helpers/_singer.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/singer_sdk/helpers/_singer.py b/singer_sdk/helpers/_singer.py index 2f3168dc4..04cc83435 100644 --- a/singer_sdk/helpers/_singer.py +++ b/singer_sdk/helpers/_singer.py @@ -1,7 +1,6 @@ from __future__ import annotations import enum -import json import logging import sys from dataclasses import asdict, dataclass, field, fields @@ -332,16 +331,6 @@ def from_dict(cls, data: dict[str, Any]) -> BaseBatchFileEncoding: encoding_cls = cls.registered_encodings[encoding_format] return encoding_cls(**data) - @classmethod - def parse(cls, value: str, **kwargs: Any): - """Parse a JSON Lines encoding from a dictionary. - - Args: - value: A dictionary containing the encoding. - kwargs: Additional keyword arguments for `json.loads`. - """ - return cls.from_dict(json.loads(value, **kwargs)) - @dataclass class JSONLinesEncoding(BaseBatchFileEncoding):