Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 16, 2024
1 parent a723567 commit 694a99c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/dvc_render/vega_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,8 @@ class Template:
def __init__(
self, content: Optional[dict[str, Any]] = None, name: Optional[str] = None
):
if (
content
and not isinstance(content, dict)
or self.DEFAULT_CONTENT
and not isinstance(self.DEFAULT_CONTENT, dict)
if (content and not isinstance(content, dict)) or (
self.DEFAULT_CONTENT and not isinstance(self.DEFAULT_CONTENT, dict)
):
raise BadTemplateError
self._original_content = content or self.DEFAULT_CONTENT
Expand Down

0 comments on commit 694a99c

Please sign in to comment.