Skip to content

Commit 58ab3e1

Browse files
bmaranvillegvwilson
authored andcommitted
use template validator from ValidatorCache
1 parent 6d905e7 commit 58ab3e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plotly/io/_templates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ def __delitem__(self, key):
104104

105105
def _validate(self, value):
106106
if not self._validator:
107-
from plotly.validators.layout import TemplateValidator
107+
from plotly.validator_cache import ValidatorCache
108108

109-
self._validator = TemplateValidator()
109+
self._validator = ValidatorCache.get_validator("layout", "template")
110110

111111
return self._validator.validate_coerce(value)
112112

0 commit comments

Comments
 (0)