Skip to content

Commit 771f918

Browse files
bmaranvillegvwilson
authored andcommitted
trace validator should be instance not class of DataValidator
1 parent af43f68 commit 771f918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotly/_subplots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def _subplot_type_for_trace_type(trace_type):
10661066
DataValidator = ValidatorCache.get_validator("", "data")
10671067
# from plotly.validators import DataValidator
10681068

1069-
trace_validator = DataValidator
1069+
trace_validator = DataValidator()
10701070
if trace_type in trace_validator.class_strs_map:
10711071
# subplot_type is a trace name, find the subplot type for trace
10721072
trace = trace_validator.validate_coerce([{"type": trace_type}])[0]

0 commit comments

Comments
 (0)