From 31320776263ef39b43ec64c11541afee8f9a578c Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Thu, 6 Mar 2025 08:50:01 -0800 Subject: [PATCH] update comment --- metadata-ingestion/src/datahub/cli/check_cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/metadata-ingestion/src/datahub/cli/check_cli.py b/metadata-ingestion/src/datahub/cli/check_cli.py index ebf9ca210f60f..b47dfdaf95e9f 100644 --- a/metadata-ingestion/src/datahub/cli/check_cli.py +++ b/metadata-ingestion/src/datahub/cli/check_cli.py @@ -397,9 +397,9 @@ def test_path_spec(config: str, input: str, path_spec_key: str) -> None: def _jsonify(data: Any) -> Any: if dataclasses.is_dataclass(data): - # dataclasses.asdict() is recursive, which is not what we want. - # We're doing the recursion manually here, so we don't want - # dataclasses to do it too. + # dataclasses.asdict() is recursive. We're doing the recursion + # manually here via _jsonify calls, so we can't use + # dataclasses.asdict() here. return { f.name: _jsonify(getattr(data, f.name)) for f in dataclasses.fields(data) }