Skip to content

Commit f42fa0c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7c88095 commit f42fa0c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Diff for: src/dvc_render/vega_templates.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ class Template:
8686
def __init__(
8787
self, content: Optional[dict[str, Any]] = None, name: Optional[str] = None
8888
):
89-
if (
90-
content
91-
and not isinstance(content, dict)
92-
or self.DEFAULT_CONTENT
93-
and not isinstance(self.DEFAULT_CONTENT, dict)
89+
if (content and not isinstance(content, dict)) or (
90+
self.DEFAULT_CONTENT and not isinstance(self.DEFAULT_CONTENT, dict)
9491
):
9592
raise BadTemplateError
9693
self._original_content = content or self.DEFAULT_CONTENT

0 commit comments

Comments
 (0)