Vitor-Avila commented on code in PR #30833:
URL: https://github.com/apache/superset/pull/30833#discussion_r1868374890


##########
superset/commands/chart/importers/v1/__init__.py:
##########
@@ -47,7 +51,13 @@ class ImportChartsCommand(ImportModelsCommand):
     import_error = ChartImportError
 
     @staticmethod
-    def _import(configs: dict[str, Any], overwrite: bool = False) -> None:
+    def _import(
+        configs: dict[str, Any],
+        overwrite: bool = False,
+        contents: dict[str, Any] | None = None,
+    ) -> None:
+        if contents is None:
+            contents = {}

Review Comment:
   ``` python
   contents = {} if contents is None else contents
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to