From 516065d8e47e86d5e2520e47b2d54a91437c77a2 Mon Sep 17 00:00:00 2001 From: Jack Burnett Date: Wed, 16 Nov 2022 13:11:39 +0000 Subject: [PATCH] lint --- singer_sdk/_singerlib/messages.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/singer_sdk/_singerlib/messages.py b/singer_sdk/_singerlib/messages.py index 73be9e556..1aedd8e56 100644 --- a/singer_sdk/_singerlib/messages.py +++ b/singer_sdk/_singerlib/messages.py @@ -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 @@ -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,