Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Burnett committed Nov 16, 2022
1 parent c0c7a4f commit 516065d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion singer_sdk/_singerlib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def to_dict(self) -> dict[str, t.Any]:
Returns:
A dictionary with the defined message fields.
"""

return asdict(self, dict_factory=exclude_null_dict)

@classmethod
Expand Down Expand Up @@ -81,6 +80,10 @@ class RecordMessage(Message):
"""The time the record was extracted."""

def to_dict(self) -> dict[str, t.Any]:
""" Converts to a dictionary.
This overrides the default conversion logic, since it uses unnecessary deep copying and is very slow
"""
result: dict[str, t.Any] = {
'type': 'RECORD',
'stream': self.stream,
Expand Down

0 comments on commit 516065d

Please sign in to comment.