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 Jan 6, 2025
1 parent 1668e09 commit 49c8d98
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 49c8d98

Please sign in to comment.