Skip to content

Commit

Permalink
Remove BaseBatchFileEncoding.parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Aug 11, 2022
1 parent 5eb785b commit b9e8e9b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions singer_sdk/helpers/_singer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import enum
import json
import logging
import sys
from dataclasses import asdict, dataclass, field, fields
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit b9e8e9b

Please sign in to comment.